{ "info": { "author": "Branden Clark", "author_email": "clark@rpis.ec", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: Microsoft :: Windows", "Programming Language :: Python", "Topic :: Security", "Topic :: Software Development :: Disassemblers" ], "description": "# annotate_lineinfo\n\nThis IDAPython script/plugin will parse the PDB for the loaded executable and annotate the disassembly with source and line number information.\n\n

\n\"WinDbg\n

\n\n## Usage\n\n### Script\n* Option 1) Run [annotate_lineinfo.py](https://github.com/clarkb7/annotate_lineinfo/blob/master/annotate_lineinfo/annotate_lineinfo.py) as a regular IDAPython script.\n\n* Option 2) From another script or the IDAPython console:\n```python\nimport annotate_lineinfo\nannotate_lineinfo.ida_annotate_lineinfo()\n```\n\n### Plugin\nTo install\n* Option 1) Run `python setup.py install --install-ida-plugin=PATH` to install [annotate_lineinfo_plugin.py](https://github.com/clarkb7/annotate_lineinfo/blob/master/annotate_lineinfo_plugin.py) to `PATH\\plugins`\n * If `PATH` is not specified, `%IDAUSR%` will be tried first\n * If `%IDAUSR%` does not exist, it defaults to `%APPDATA%\\Hex-Rays\\IDA Pro`\n* Option 2) Manually place [annotate_lineinfo_plugin.py](https://github.com/clarkb7/annotate_lineinfo/blob/master/annotate_lineinfo_plugin.py) in the `plugins` directory of your IDA installation.\n\nAnnotate entire file\n* Use shortcut key `Alt-Shift-A` or run from `Edit->Annotate lineinfo` menu.\n\nDisassembly view popup menu\n* Right click inside a function, select annotate\n* Select a range of instructions, right click, select annotate\n\nFunctions view popup menu\n* Select one or more functions, right click, select annotate\n\nEach of the above actions has a corresponding `remove annotations` action.\n\nOn load, annotate_lineinfo attempts to locate the PDB in the following locations:\n* `_NT_SYMBOL_PATH` if set\n* IDA's default PDB download directory `%TEMP%\\ida`\n* MSDIA defaults - Path in debug directory of executable, same path as executable\n\nYou may specify the PDB path manually, or request another auto-locate attempt (e.g. after IDA downloads the PDB),\nfrom the `Edit->Annotate lineinfo` menu.\n\n## Caveats\nOnly runs on Windows. This script makes use of the COM API provided by msdia[ver].dll to parse the PDB.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/clarkb7/annotate_lineinfo", "keywords": "IDA IDAPython PDB", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "annotate-lineinfo", "package_url": "https://pypi.org/project/annotate-lineinfo/", "platform": "", "project_url": "https://pypi.org/project/annotate-lineinfo/", "project_urls": { "Homepage": "https://github.com/clarkb7/annotate_lineinfo" }, "release_url": "https://pypi.org/project/annotate-lineinfo/0.1/", "requires_dist": null, "requires_python": "", "summary": "Annotate IDA with source and line number information from a PDB", "version": "0.1" }, "last_serial": 5428915, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6ba80a44160c078c2ae310e846f5efb3", "sha256": "658048266e125afed618ac407388db633e823e378cb9d87c1d425711c5cc3731" }, "downloads": -1, "filename": "annotate_lineinfo-0.1.tar.gz", "has_sig": false, "md5_digest": "6ba80a44160c078c2ae310e846f5efb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8095, "upload_time": "2019-06-21T04:38:15", "url": "https://files.pythonhosted.org/packages/1e/42/aef96036f50b759447194fa9d9200c4684475b453b0d0952e02b16ba693a/annotate_lineinfo-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6ba80a44160c078c2ae310e846f5efb3", "sha256": "658048266e125afed618ac407388db633e823e378cb9d87c1d425711c5cc3731" }, "downloads": -1, "filename": "annotate_lineinfo-0.1.tar.gz", "has_sig": false, "md5_digest": "6ba80a44160c078c2ae310e846f5efb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8095, "upload_time": "2019-06-21T04:38:15", "url": "https://files.pythonhosted.org/packages/1e/42/aef96036f50b759447194fa9d9200c4684475b453b0d0952e02b16ba693a/annotate_lineinfo-0.1.tar.gz" } ] }