Skip to content
/ msp2dot Public

A script to produce graphs from MSP430 assembly files using pydot.

License

Notifications You must be signed in to change notification settings

idosch/msp2dot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A script to produce graphs from MSP430 assembly files using pydot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published