Coder Social home page Coder Social logo

deki0r / abstractanalysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trailofbits/binjascripts

0.0 1.0 0.0 8.69 MB

Abstract interpretation using lattices to analyse the possible sign of a variable at any point in a program

License: MIT License

Python 99.38% C 0.62%

abstractanalysis's Introduction

signed_analysis.py

Abstract interpretation using lattices to analyse the possible sign of a variable at any point in a program.

binja_memcpy.py

A simple plugin demonstrating the binja headless api for python. Finds memcpy's and cooresponding src/dst information. The plguin can be moditified to find argument information for other function calls.

walk_via_dfs.py

A plugin template to walk the binja CFG using the depth-first search algorithm (aka path sensitive, one path traversed at a time)

Install

  • Clone this repo

  • Place walk_via_dfs.py and signed_analysis.py into your Binja Plugin folder, the usual location is: /Users/<user>/Library/Application Support/Binary Ninja/plugins

  • Install binaryninja headless python API using this script

  • Open a binary in Binary Ninja, right click on a function, and run either the signed analysis script or the dfs script.

  • To run the memcpy script, cd into the directory it is in and run as a normal python script with the full path to you binary as the 2nd argument. Example: python binja_memcpy.py /bin/bash

Example Signed Analysis of test.c

The sign of C depends on the path taken.

abstractanalysis's People

Contributors

dguido avatar quend avatar

Watchers

 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.