Code Monkey home page Code Monkey logo

libsprinkles's Introduction

libsprinkles: Simple disassembly library.

This project is alpha (which is my excuse if something doesn't function accurately or correctly).

libsprinkles is both a library and has an accompanying example called vorhees libsprinkles provides a simple API that can be used to disassemble binaries using LLVM. The example program vorhees uses libsprinkles and can be used to disassemble a binary into a JSON representation.

Usage

The best example is to look at vorhees/main.cc which takes as input an object file and outputs a JSON representation of the executable code.

So you want to use the library?

  1. Include "sprinkles.hh"
  2. Instantiate a Sprinkles instance providing a path to an object file that is to be disassembled: sprinkles::Sprinkles S(filename);
  3. Initialize the Sprinkles instance (perform the disassembly): S.initialize();
  4. Now you're ready to Sprinkle out some magical assembly!

Example

Vorhees is an object file -to- JSON dumper. Give it a whirl! build/vorhees/vorhees <object file>

Building

  1. Create a build directory. mkdir libsprinkles/build
  2. From the just created build directory, invoke cmake with the path to the libsprinkles sources. cd libsprinkles/build; cmake ../
  3. Invoke make to build the library and example program vorhees.

Dependencies

  • llvm: libsprinkles uses many of the libraries provided by LLVM. Build and install LLVM, or use a package (llvm and/or llvm-dev).

Resources

Contact

Matt Davis: https://github.com/enferex

libsprinkles's People

Contributors

enferex 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.