Comments (3)
- 理论上是可以兼容的,如果出现备份、跳板指令不一致,以及进而导致指令修复不正确的问题,其实可以按照Cydia Substrate的指令长度、内容实现即可。都是开源的(github上的Cydia Substrate可能是很久以前的版本,是否官方开源不确定),对比异同,修复即可。
- 例如mmap指定起始基址,或者搜索so中的未使用的空间,比如so为了内存对齐之类的会加一些padding,解析elf数据结构,确定padding地址、大小,利用padding做跳板。
from android_inlinehook.
感谢您的解答。可能我回复的有点晚了。我使用了您的项目,对于在函数头部hook和中间一些位置的hook它完美工作。但它理论上可能百分百支持任意位置hook吗?
from android_inlinehook.
感谢您的解答。可能我回复的有点晚了。我使用了您的项目,对于在函数头部hook和中间一些位置的hook它完美工作。但它理论上可能百分百支持任意位置hook吗?
不能百分百任意位置hook。最明显的一个问题就是跳板指令长度的问题,如果长度超过了该函数的长度则可能覆盖下一个函数或者数据,可能造成未知错误。其次的问题是任意位置hook需要做好指令修复,可能你备份的几条指令中需要你对pc寄存器相关的部分进行修复,或者可能你备份的几条指令和整个函数有很强的上下文的联系,可能无法修复等。
from android_inlinehook.
Related Issues (8)
- demo跑不起来 直接报错 mprotect error:Permission denied HOT 9
- SYSCALL HOT 1
- hook 系统 AudioTrack 的 write 函数,提示成功,但是 hook 的函数没有被调用(建议留个QQ可以沟通) HOT 1
- 尝试hook art::ArtMethod:invoke报错 HOT 4
- OPPO 手机 Android 10 demo hook成功了 回调origin的时候崩溃 HOT 7
- arm64 11系统 signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x72c9303dd0 HOT 2
- iModel.cpp:236:35: error: reference to overloaded function could not be resolved; HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_inlinehook.