Gepetto is a Python script which uses OpenAI's ChatGPT to provide meaning to functions decompiled by IDA Pro.
Simply drop this script into your IDA plugins folder ($IDAUSR/plugins
).
You will need to add the required packages to IDA's Python installation for the script to work.
Find which interpreter IDA is using by checking the following registry key:
Computer\HKEY_CURRENT_USER\Software\Hex-Rays\IDA
(default on Windows: %LOCALAPPDATA%\Programs\Python\Python39
).
Finally, with the corresponding interpreter, simply run:
[/path/to/python] -m pip install -r requirements.txt
Once the plugin is installed properly, you should be able to invoke it from the context menu of IDA's pseudo code windows, as shown in the screenshot below:
- The plugin requires access to the HexRays decompiler to function.
- The request to ChatGPT is currently synchronous and will cause IDA to freeze during the query. I'm currently working on a workaround.
- ChatGPT is a general-purpose chatbot and may very well get things wrong! Always be critical of results returned!