Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1013 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 1013 Bytes

msp2dot

A script to produce graphs from MSP430 assembly files using pydot. This script is intended for use in microcorruption ctf, which is based on the MSP430.

Usage:

usage: msp2dot [-h] CODE SUBROUTINE

positional arguments: CODE Path to assembly file. SUBROUTINE Name of subroutine to graph. Graph is written to SUBROUTINE.png

Dependencies:

Besides Python 2.7 the only dependency is pydot, which can be installed using your package manager or pip: pip2 install pydot

Example

msp2dot chernobyl.asm malloc Alt text

Known issues:

  1. & is replaced by amp, since there's an issue with pydot.
  2. 'br' instruction is not currently supported.

Feel free to issue pull request.

Credit:

This project is inspired by Nelson Elhage's reverse-android. His formating of code labels is also employed here.