GithubHelp home page GithubHelp logo

@caikelun hook时机 about bhook HOT 3 CLOSED

bytedance avatar bytedance commented on May 16, 2024
@caikelun hook时机

from bhook.

Comments (3)

fh2002 avatar fh2002 commented on May 16, 2024 1

已现实了。通过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.

caikelun avatar caikelun commented on May 16, 2024

是的,不太好处理。可以考虑用 inlinehook 试试:https://github.com/bytedance/android-inline-hook

from bhook.

fh2002 avatar fh2002 commented on May 16, 2024

bhook比xhook好用,如果bhook能提供一个对外的refresh接口就更好了,使用者可以自己决定hook时机。

from bhook.

Related Issues (20)

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.