Giter Site home page Giter Site logo

ida-graph-exporter's Introduction

IDA Graph Exporter

What?

Plugin for IDA Pro that allows to export a function as rendered in the graph view to a vectorized SVG. The native plugin retrieves all relevant information from the currently focused graph view and stores them into a JSON. The JSON is then to be processed json2svg.py to produce an SVG. Compiled versions of the plugin for IDA Versions 7.0 to 8.2 can be found on the Release page.

The native code ships (amalgamated) copies of miniz 3.0.2 and jsoncpp 1.9.5 for compression and JSON serialization. The python script converting JSON to SVG needs svgwrite installed.

How?

  1. Compile the source in this repository (you need the Hex-Rays SDK to do that) or download a precompiled plugin matching (closely) your IDA Pro version from the Release page.
  2. Copy both IdaGraph.dll and IdaGraph64.dll into the plugins directory of your local IDA Pro installation and reload IDA.
  3. Open the control flow graph that is to be exported in a graph viewer tab and export it to JSON via Edit -> Plugins -> Graph Exporter.
  4. Convert the JSON to SVG using json2svg.py <output.json>. The output file name is the same as the input plus an .svg suffix.
  5. Optional: To convert the SVG to PDF, I use rsvg-convert -f pdf -o <output.pdf> <input.svg>

Example

Screenshot of some function taken from an /usr/bin/id binary:

Screenshot of Control Flow Graph

Exported SVG:

Exported SVG showing Control Flow Graph

Converting from SVG to PDF:

rsvg-convert -f pdf -o id.json.pdf id.json.pdf.svg

ida-graph-exporter's People

Contributors

kirschju avatar

Stargazers

 avatar sangjun avatar Christopher Layne avatar Sam Sheffres avatar  avatar mishap avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.