Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yifannir opened this issue Jan 22, 2024 · 4 comments
Open

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

yifannir opened this issue Jan 22, 2024 · 4 comments

Comments

@yifannir
Copy link

在运行 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已修改

@esrrhs
Copy link
Owner

esrrhs commented Jan 22, 2024

75183 / 这里多了个空格?

@yifannir
Copy link
Author

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

@esrrhs
Copy link
Owner

esrrhs commented Jan 24, 2024

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

@yifannir
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants