hookso icon indicating copy to clipboard operation
hookso copied to clipboard

运行readme示例报错find_libc_name: not find libc name

Open yifannir opened this issue 1 year ago • 4 comments

在运行 sudo ./hookso syscall 75183 1 i=1 s="haha" i=4 报错 [ERROR][2024.1.22,9:15:29,300]main.cpp:1008,find_libc_name: not find libc name in /proc/75183 /maps 这是什么原因呢,进程id已修改

yifannir avatar Jan 22 '24 09:01 yifannir

75183 / 这里多了个空格?

esrrhs avatar Jan 22 '24 10:01 esrrhs

不是,发现是if (starts_with(targetso, "libc-") && ends_with(targetso, ".so")) 找不到,看proc里面用的是 libc.so.6 这个工具针对这些有版本要求么

yifannir avatar Jan 23 '24 01:01 yifannir

详细贴下/proc/的maps看看?

esrrhs avatar Jan 24 '24 01:01 esrrhs

这个通过更改操作系统把版本对上libc格式的了,还请请教下这个问题哈,多谢 https://github.com/esrrhs/hookso/issues/1 “进程A调用c.so,然后写的需要替换的b.so里面也依赖了c.so,这样使用b.so中的函数去替换进程A中的c.so也死循环了。”

yifannir avatar Jan 24 '24 06:01 yifannir