GhidraDeepseek is a Ghidra plugin forked from GptHidra that uses the Deepseek to explain functions. With GhidraDeepseek, you can easily understand the purpose and behavior of functions in your codebase.
Self-explanatory
- Ghidra
>= 10.1.5
(https://ghidra-sre.org). - An API key for the Deepseek API
- Download the GhidraDeepseek script
- Open the Ghidra Script Manager (found in the
Tools
menu). - Click the
New
button to create a new script. - Select
Python
as the language and give the script the nameGptHidra.py
. - Paste the contents of the GptHidra.py script into the editor window.
- Replace
API_KEY = ''
with your Deepseek API key. - Click the
Save
button to save the script.
To use GhidraDeepseek, select a function in the Ghidra decompiler and do one of the following:
-
Press
Ctrl + Alt + G
(you can edit the script to change this shortcut). -
Go to
Tools -> GptHidra
(you can edit the script to change this menu item).
An explanation of the selected function will be printed to the Ghidra console.
https://ghidra.re/ghidra_docs/api/ghidra/app/decompiler/DecompInterface.html
Check out the original GptHidra