{"id":13754924,"url":"https://github.com/anic/ida2pwntools","last_synced_at":"2025-05-10T00:31:17.689Z","repository":{"id":92254853,"uuid":"161734245","full_name":"anic/ida2pwntools","owner":"anic","description":"a IDA 7.0 plugins that helps to attach process created by pwntools and debug pwn","archived":false,"fork":false,"pushed_at":"2023-03-29T14:16:37.000Z","size":303,"stargazers_count":67,"open_issues_count":1,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-16T08:34:00.091Z","etag":null,"topics":["ctf","ida","ida-plugin","idapro","pwntools"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-14T05:07:29.000Z","updated_at":"2024-11-05T04:56:05.000Z","dependencies_parsed_at":"2023-06-08T04:00:44.211Z","dependency_job_id":null,"html_url":"https://github.com/anic/ida2pwntools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anic%2Fida2pwntools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anic%2Fida2pwntools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anic%2Fida2pwntools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anic%2Fida2pwntools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anic","download_url":"https://codeload.github.com/anic/ida2pwntools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253346394,"owners_count":21894263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ctf","ida","ida-plugin","idapro","pwntools"],"created_at":"2024-08-03T10:00:36.878Z","updated_at":"2025-05-10T00:31:17.272Z","avatar_url":"https://github.com/anic.png","language":"Python","readme":"# ida2pwntools\nida2pwntools 是一款IDA 7.0上的插件，用于远程连接pwntools启动的程序进行pwn调试。\n\n# 安装\n\n将 ida2pwntools.py 放入IDA安装目录下的 plugins 目录即可。\n\n在IDA中 加载elf文件后会在最右侧显示ida2pwntools菜单表示安装成功。\n\n# 使用\n## 准备\n- IDA 中配置好远端服务器地址（Debugger-\u003eProcess options-\u003eHostname/Port）\n- IDA 中配置好需要加载的程序名字（Debugger-\u003eProcess options-\u003eApplication），只填写程序名，不要带路径。ida2pwntools会根据这个名字找进程\n- 在远端服务器启动IDA提供的linux_server / linux_server64 等\n- 在使用pwntools的脚本exp.py中，增加wait_for_debugger代码\n```\nfrom pwn import *\nfrom pwnlib.util.proc import wait_for_debugger\nio = process(\"silent\", stdin=PTY)\nwait_for_debugger(io.pid)\n```\n\n## 调试\n- 方法1 ：用快捷键尝试一次加载\n\n先启动exp.py，执行到wait_for_debugger等待程序被调试。切换到IDA中按快捷键F12启动ida2pwntools插件，插件会查找进程尝试进行一次加载。\n\n- 方法2 ：用窗口尝试等待加载\n\n在IDA中的ida2pwntools菜单，点击“connect to pwntools”，插件弹出等待窗口等待同名程序启动。然后启动exp.py，运行至wait_for_debugger，程序自动会被挂载上。\n\n![image](https://github.com/anic/ida2pwntools/blob/master/screenshot/2start_plugin.png?raw=true)\n\n![image](https://github.com/anic/ida2pwntools/blob/master/screenshot/1wait_for_debugger.png?raw=true)\n\n- 插件连接pwntools成功后，即可在IDA和pwntools中调试\n\n![image](https://github.com/anic/ida2pwntools/blob/master/screenshot/3attached_in_pwntools.png?raw=true)\n\n![image](https://github.com/anic/ida2pwntools/blob/master/screenshot/4attached_in_ida.png?raw=true)\n \n# 适用版本\nIDA 7.0\n\n# 注意事项\n- 使用快捷键F12只能尝试一次加载，因为IDA中对于脚本运行有限制。\n- 为了调试更快捷，建议关闭Source-Level（Debugger-\u003eUse source-level debugging），否则一旦连接到远程程序，IDA就会弹出各种警告提示框让你确认。\n\n","funding_links":[],"categories":["\u003ca id=\"f7d311685152ac005cfce5753c006e4b\"\u003e\u003c/a\u003e与调试器同步\u0026\u0026通信\u0026\u0026交互"],"sub_categories":["\u003ca id=\"46c9dfc585ae59fe5e6f7ddf542fb31a\"\u003e\u003c/a\u003eYara"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanic%2Fida2pwntools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanic%2Fida2pwntools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanic%2Fida2pwntools/lists"}