Skip to content

Latest commit

 

History

History
 
 

idacode

IDACode

IDACode faciliates the usage and development of IDAPython scripts. It features the execution of Python scripts in your IDA instance and a debugger that allows you to debug your scripts.

Features

IDACode supports the following main features:

  1. Script execution in IDAs environment
  2. Debugging scripts with VS Code's remote debugger

preview

Requirements

In order to use IDACode ensure that you have set all necessary information in IDACode's extension settings. For information on how to set up IDACode for IDA please refer to the project repository.

Extension Settings

IDACode requires the following settings to be set in order to function correctly:

  • IDACode.host: the host address that is running IDA
  • IDACode.port: the port IDA is listening on
  • IDACode.debug.port: the debug port the IDAPython debugger is listening on

Autocomplete

To enable autocomplete for your scripts create a file called .env and extend your existing PYTHONPATH environment variable with the path to your IDAPython modules. An example .env could be:

PYTHONPATH=%PYTHONPATH%;C:\Program Files\IDA 7.4\python\3

Known Issues

IDACode doesn't support host to VM communication unless the VM uses a shared volume that matches the workspace path set in VS Code when connecting to IDA.

Release Notes

0.1.0

  • Initial release
  • IDAPython execution
  • IDAPython debugger

0.1.1

  • Added logging support

0.1.2

  • Enhanced UX
  • Added configuration checks

0.1.3

  • Added support for Python 2

0.1.4

  • Added "Save on execute" support in settings

0.2.0

  • Added "Execute on save" support in settings
  • Fixes Python 3.8 support on Windows (PR #13)
  • Introduces __name__ inside of the script environment as __main__ (Issue #14)

0.2.2

  • Updated README

0.3.0

  • Fixed Python 2 support (PR #17)
  • Fixed issue where debugpy would attempt to spawn the current process (Issue #23)