Git Product home page Git Product logo

minblox's Introduction

Minblox - sample set minimization tool

Minblox tool is comprised of two parts.

  • A DynamoRIO instrumentation part (libbbcoverage) tasked with recording all basic block executed during application execution.
  • minblox.py - Python script that runs the DynamoRIO instrumentation and analyzes the log files to minimize the sample set.

Currently, it's tested on Linux, but should run on Windows with small modifications too.

To compile the bbcoverage tool, place the bbcoverage directory inside DynamoRIO distribution directory. Run:

*  cmake . (create makefiles)
*  make    (build the tool)

Copy the built tool from bbcoverage/bin directory to minblox directory. If needed, adjust DR_RUN_PATH and BBCOVERAGE_PATH variables in minblox.py to point to required binaries.

If necessary, modify the HOST and PORT variables for HTTP server to listen on.

The tool has a couple of options:

  • --samples - Directory containing file sample set to minimize. It is required during the coverage phase.

  • --application - Path to the application to instrument. Required during coverage phase.

  • --server - If specified, sample files will be served to the application over HTTP server. For some file types, browsers exhibit different behavior when files are opened from disk rather than from server.

  • --timeout - Specifies the amount of time (in seconds) that the coverage will run. Can be unspecified if application exists by itself , otherwise it is required.

  • --logs - Specifies the directory in which basic block coverage files will be saved.

  • --extension - If set , files found under samples directory will be filtered by specified extension.

  • --output - Specifies the directory in which to save the minimal sample set. Required during minimization phase.

  • --cover - If set, minblox.py will run the basic block coverage phase.

  • --minimize - If set, minblox.py will run the minimization phase.

Lots of place for improvements!

IMPORTANT: Prior to running the minimization, ASLR needs to be disabled.

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.