oToToT / radare2-deep-graph

A Cutter plugin to generate radare2 graphs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

radare2-deep-graphs

A Cutter plugin to generate radare2 graphs. It also provides a new graph called Deep callgraph, which builds an in-depth callgraph from the current function, adding recursively its callees' callings.

Please, read the code before using this script/plugin (it is small, should not take long). I have not tested it recently.

Use

By default, on Linux, Cutter loads python plugins from $HOME/.local/share/RadareOrg/Cutter/plugins/python. You just need to copy one of the files under the plugins folder on that path.

Output format and output path can be specified on the plugin's window. By default, graphs are saved as dot files on the current directory, from where Cutter was launched.

alt text

Command line use

The Deep callgraph graph can also be generated from the command line, see the script on the script directory.

alt text

Ghidra

Place it in your ghidra_scripts folder and use it from Ghidra's script manager. Dot files are placed in your Ghidra folder (e.g., in ~/ghidra_9.1.2_PUBLIC/)

TODO

  • Take Deep callgraph settings from the user settings.

About

A Cutter plugin to generate radare2 graphs

License:GNU General Public License v3.0


Languages

Language:Python 80.7%Language:Java 19.0%Language:Shell 0.3%