Polar
LLDB plugin which queries OpenAI's davinci-003 language model to speed up reverse-engineering. Treat it like an extension of Lisa.py, an Exploit Dev Swiss Army Knife.
At the moment, it can ask davinci-003
to explain what the current disassembly does. Here is a simple example of what results it can provide:
Usage
curl -OL https://raw.githubusercontent.com/ant4g0nist/polar/master/polar.py
mv polar.py ~/polar.py
pip3 install capstone openai Pygments
echo command script import ~/polar.py >> ~/.lldbinit
You need to set OPENAI_API_KEY env variable. You can obtain your openai token from : Openai api-keys
export OPENAI_API_KEY=<your openai api token here>.
lldb
(lldb) help explain
(lldb) help decompile
Example:
Acknowledgements
- Thanks to JusticeRage for Gepetto
- Thanks to OpenAI for making this incredible bot
- lldb
- lisa.py