Skip to content
/ polar Public
forked from ant4g0nist/polar

A LLDB plugin which queries OpenAI's davinci-003 language model to explain the disassembly

License

Notifications You must be signed in to change notification settings

keith/polar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

Sample

Usage

curl -OL https://raw.githubusercontent.com/ant4g0nist/polar/master/polar.py
mv polar.py ~/polar.py
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

explain0x0

Example:

Sample

Acknowledgements

About

A LLDB plugin which queries OpenAI's davinci-003 language model to explain the disassembly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%