1. 首页
  2. 考试认证
  3. 其它
  4. MacInject 将程序代码注入和执行到另一个进程的命令行工具和库

MacInject 将程序代码注入和执行到另一个进程的命令行工具和库

上传者: 2024-10-16 17:42:01上传 ZIP文件 12.67KB 热度 3次

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>
下载地址
用户评论