Giter Club home page Giter Club logo

Comments (3)

zhuotong avatar zhuotong commented on August 21, 2024
  1. 理论上是可以兼容的,如果出现备份、跳板指令不一致,以及进而导致指令修复不正确的问题,其实可以按照Cydia Substrate的指令长度、内容实现即可。都是开源的(github上的Cydia Substrate可能是很久以前的版本,是否官方开源不确定),对比异同,修复即可。
  2. 例如mmap指定起始基址,或者搜索so中的未使用的空间,比如so为了内存对齐之类的会加一些padding,解析elf数据结构,确定padding地址、大小,利用padding做跳板。

from android_inlinehook.

XMDS avatar XMDS commented on August 21, 2024

感谢您的解答。可能我回复的有点晚了。我使用了您的项目,对于在函数头部hook和中间一些位置的hook它完美工作。但它理论上可能百分百支持任意位置hook吗?

from android_inlinehook.

zhuotong avatar zhuotong commented on August 21, 2024

感谢您的解答。可能我回复的有点晚了。我使用了您的项目,对于在函数头部hook和中间一些位置的hook它完美工作。但它理论上可能百分百支持任意位置hook吗?

不能百分百任意位置hook。最明显的一个问题就是跳板指令长度的问题,如果长度超过了该函数的长度则可能覆盖下一个函数或者数据,可能造成未知错误。其次的问题是任意位置hook需要做好指令修复,可能你备份的几条指令中需要你对pc寄存器相关的部分进行修复,或者可能你备份的几条指令和整个函数有很强的上下文的联系,可能无法修复等。

from android_inlinehook.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.