Quantcast
Channel: 睿论坛 - 最新话题
Viewing all articles
Browse latest Browse all 5740

如何在dlopen动态加载dylib且未执行constructor函数前hook这个dylib?

$
0
0

@artkai wrote:

dlopen动态加载自定义dylib的时候,在加载完毕后会自动执行dylib的constructor函数,执行完后再返回,有没有办法在加载完还没执行constructor的时候hook这个dylib?因为要hook的函数在constructor里就执行了,如果等dlopen返回再hook就太迟了,函数已经执行了。。我试了fishhook用的_dyld_register_func_for_add_image方法不行,不知道是不是我用错了,或者有其他方法请大神赐教哈~

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5740

Latest Images

Trending Articles



Latest Images