Skip to content

N0fix/IDA_rust_metadata_finder

Repository files navigation

Rust metadata helper for IDA

This IDA script does two things:

  • it renames and retype every panics found in your target executable:

  • it comments decompiler output with matching code, giving you the exact panic location in source code:

How to use it

# create a python venv with the tool of your choice and activate it
pip install -r requirements.txt

Then, in IDA: File -> Script File... and run venv/bin/activate and rust_metadata_finder.py.

Want to extend the plugin ?

You can implement your own disassembler class to extend this script to binary ninja or else. To do so, create a class that herits from ./rusthelper/impl/generic.py, and use it instead of the default IDAImpl.

Acknowledgments

This is based on Cindy Xiao's blog and Binary ninja plugin.

About

IDA plugin to recover source code from panic information on rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages