Comments (3)
已现实了。通过inlinehook call_constructors入手的,再对bhook改了一点点。
void (*old_call_constructors)(void* self); void new_call_constructors(void* self) { bytehook_refresh(); old_call_constructors(self); }
char* function_name = NULL; void* call_constructors = bytehook_find_symbol_by_linker("soinfo.*call_constructors", &function_name); if(call_constructors != NULL){ DobbyHook((void*)call_constructors, (void*)new_call_constructors, (void**)&old_call_constructors); }
void bh_core_refresh(){ bh_dl_monitor_dlclose_rdlock(); bh_elf_manager_refresh(bh_core.elf_mgr, false, bh_task_manager_post_new_elf, bh_core.task_mgr); bh_dl_monitor_dlclose_unlock(); }
from bhook.
是的,不太好处理。可以考虑用 inlinehook 试试:https://github.com/bytedance/android-inline-hook
from bhook.
bhook比xhook好用,如果bhook能提供一个对外的refresh接口就更好了,使用者可以自己决定hook时机。
from bhook.
Related Issues (20)
- called in a non-hook status?
- 是否遗漏了self->cfi_hook_lock的destroy操作 HOT 1
- bhook 的dlopen未监控到加载的so
- 通过bytehook_hook_single hook pthread_create函数,新函数只会被执行一次 HOT 1
- armeabi-v7a hook失败,用xhook库能成功 HOT 4
- hook jni 方法失败 HOT 2
- 老哥,BYTESIG_TRY好像不能生效 HOT 2
- hook 构造函数崩溃问题 HOT 2
- 可否支持armeabi架构呢?
- native crash at android 13 HOT 2
- 鲜时光TV APK Android 13平台无法打开 HOT 1
- mprotect 返回-1 HOT 1
- Building documentation instructions with mkdocs HOT 2
- hook __android_log_print没效果 HOT 2
- 在Android 7 对dlopen的监控会影响系统原本的dlopen调用导致后续的so都无法loading HOT 4
- Crash at hook __system_property_read_callback HOT 1
- hook不成功 HOT 1
- 合并bytehook与shadowhook HOT 1
- bytesig被初始化多次时, 后面的会失败 HOT 3
- Android 9部分设备上hook 失败 HOT 3
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 bhook.