{"id":13613215,"url":"https://github.com/idapython/src","last_synced_at":"2025-05-14T10:13:31.612Z","repository":{"id":28709231,"uuid":"32229857","full_name":"idapython/src","owner":"idapython","description":"IDAPython project for Hex-Ray's IDA Pro","archived":false,"fork":false,"pushed_at":"2025-03-13T15:18:11.000Z","size":175339,"stargazers_count":1478,"open_issues_count":5,"forks_count":289,"subscribers_count":89,"default_branch":"master","last_synced_at":"2025-04-14T23:16:28.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.hex-rays.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idapython.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.txt","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-14T20:09:27.000Z","updated_at":"2025-04-14T18:01:58.000Z","dependencies_parsed_at":"2025-03-24T18:11:16.139Z","dependency_job_id":null,"html_url":"https://github.com/idapython/src","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idapython%2Fsrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idapython%2Fsrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idapython%2Fsrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idapython%2Fsrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idapython","download_url":"https://codeload.github.com/idapython/src/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975329,"owners_count":21192210,"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":[],"created_at":"2024-08-01T20:00:41.765Z","updated_at":"2025-04-14T23:16:55.723Z","avatar_url":"https://github.com/idapython.png","language":"Python","funding_links":[],"categories":["Static Analysis","\u003ca id=\"ad68872e14f70db53e8d9519213ec039\"\u003e\u003c/a\u003eIDAPython本身","Python","Reverse Engine","使用","Scripting"],"sub_categories":["Disassemblers","\u003ca id=\"2299bc16945c25652e5ad4d48eae8eca\"\u003e\u003c/a\u003e未分类","\u003ca id=\"ad68872e14f70db53e8d9519213ec039\"\u003e\u003c/a\u003eIDAPython本身"],"readme":"# IDAPython\n## Python plugin for Interactive Disassembler\n\nIDAPython is an IDA plugin which makes it possible to write scripts\nfor IDA in the Python programming language. IDAPython provides full\naccess to both the IDA API and any installed Python module.\n\nCheck the scripts in the examples directory to get an quick glimpse.\n\n## Availability\n\nLatest stable versions of IDAPython are available from\n  https://github.com/idapython/src\n\n## Resources\n\nThe full function cross-reference is readable online at\n  https://python.docs.hex-rays.com\n\nMailing list for the project is hosted by Google Groups at\n  https://groups.google.com/g/idapython\n\n## Installation from binaries\n\n1. Install latest Python 3.x version from https://www.python.org/\n2. Copy the whole \"python\" directory to `%IDADIR%`\n3. Copy \"idapython.cfg\" to `%IDADIR%\\cfg`\n\n## Usage\n\n - Run script: File / Script file (`Alt+F7`)\n - Execute Python statement(s) (`Shift+F2`)\n - Run previously executed script again: View / Recent Scripts (`Alt+F9`)\n\n### Batch mode execution:\n\nStart IDA with the following command line options:\n```\n -A -OIDAPython:yourscript.py file_to_work_on\n ```\nor\n```\n-Syourscript.py\n```\nor\n```\n-S\"yourscript.py arg1 arg2 arg3\"\n```\n\n(Please see https://hex-rays.com/blog/running-scripts-from-the-command-line-with-idascript/)\n\nIf you want fully unattended execution mode, make sure your script\nexits with a `qexit()` call.\n\nBy default scripts run after the database is opened. Extended option\nformat is:\n```\n  -OIDAPython:[N;]script.py\n```\nWhere N can be:\n  0: run script after opening database (default)\n  1: run script when UI is ready\n  2: run script immediately on plugin load (shortly after IDA starts and before processor modules and loaders)\n\n### User init file\n\nYou can place your custom settings to a file called `idapythonrc.py`\nthat should be placed to\n```sh\n${HOME}/.idapro/\n```\nor\n```cmd\n%AppData%\\Hex-Rays\\IDA Pro\n```\nThe user init file is read and executed at the end of the init process.\n\nPlease note that IDAPython can be configured with `idapython.cfg` file.\n\n### Invoking Python from IDC\n\nThe IDAPython plugin exposes a new IDC function `exec_python(string python_code)` that allows execution\nof Python code from IDC.\n\n### Invoking IDC from Python\n\nIt is possible to use the `idc.eval_idc()` to evaluate IDC expressions from Python.\n\n### Switching the default language between Python and IDC\n\nBy default, IDA will use IDC to evaluate expressions in dialog boxes and in `eval_expr()`.  \nIt is possible to change the default language to Python.\n\nIn order to do that, use the following (IDC/Python) code:\n```c\nload_and_run_plugin(\"idapython\", 3)\n```\nTo go back to IDC, use the following code:\n```c\nload_and_run_plugin(\"idapython\", 4)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidapython%2Fsrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidapython%2Fsrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidapython%2Fsrc/lists"}