iOS reverse fishhook How to find a string by symbol

Source: Internet
Author: User

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
  • The offset of the symbols is: 0x9b
  • The starting value of the String table is: 0X4EFC

  • The location of the string: 0X4EFC + 0x9b = 0x4f97
    _ is the beginning of the function. is the delimiter
    According to 0X4F97 can be found: _nslog.

iOS reverse fishhook How to find a string by symbol

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.