In Fishhook, there is a description of how to find a string by symbol, such as:
Now here's an example of the nslog of the reverse fishhook principle of iOS to illustrate:
1. Find dynamic table dynamically symbol Table->indirect Symbols by lazy loading table lazy symbol pointers
Lazy load table The lazy symbol pointers and dynamic table dynamically symbol table is a one by one corresponding relationship
2. Data value of dynamic table Find Symbol Table->symbols
Find the data value 0x7A in the indirect symbols, and replace it with 10 binary is 122. The data value is actually a subscript, which is the subscript of a real symbol table.
Find the value of offset 122 in the symbols table _nslog
_ is the beginning of the function. is the delimiter
3, according to the offset value of the symbols data, the string table to find strings
iOS reverse fishhook How to find a string by symbol