MacInject 将程序代码注入和执行到另一个进程的命令行工具和库
MacInject 是一个在另一个进程中注入和执行程序代码的命令行工具和库。它 易于使用,不需要深入知识,例如断言等。只需编译一段您想要作为共享库注入的代码,并调用 MacInjectTool。
注意:该工具等待注入的代码完成以释放所有资源。
平台:仅支持 Mac OS 10.7+ 上的 Intel x64。
例子:
#include <syslog>
#include <unistd>
void init() {
syslog(LOG_NOTICE, \"I got inside %d\", getpid());
}
clang -shared -o InjectMe.image InjectMe.c
sudo MacInjectTool -p InjectMe.image -t 1234
unistd>syslog>
下载地址
用户评论