Git Product home page Git Product logo

bino's Introduction

Bino - A emulation tool for your RE arsenal ๐Ÿ’ป (BETA)

Go

Bino

Bino it's a binary emulation tool written in Golang and powered by Radare's ESIL (Evaluable String Intermediate Language) that is able to emulate executable instructions from PE, ELF and Mach-O.

It can be used to evaluate encryption and decryption routines, check the CPU state in some block of code and to "execute" different architecture code and acelerate a lot of reverse engineering tasks.

Example usage

Start the emulation from the main symbol that was found by the radare code analysis, and emulate every instruction until hit the puts call.

bino emulate examples/encrypt --start-at main --until-call puts

And the code emulated was:

void decrypt() {
  char output[enc_data_size] = { 0 };

  for (int i = 0; i < enc_data_size; ++i) {
    output[i] = enc_data[i] ^ enc_key[i % enc_key_size];
  }

  // print the call arguments
  puts(output);
}

Options available

./bino help emulate
Emulate binary executable files

Usage:
  Bino emulate [flags] binary

Flags:
  -h, --help                help for emulate
      --start-at string     Start address of the emulation (default "0x0")
      --until string        Emulate until this address (default "0x0")
      --until-call string   Emulate until a function call

Other usages

Emulate from known start and end

./bino emulate file.exe --start-at 0x4000321 --until 0x4000344

Start from some point and go until hit the end of the code or any invalid instruction

./bino emulate file.exe --start-at entry0

Installation

In order to install you will need,

  • radare2

    • from their github repository, this will make sure to have the last features and fixes.
  • Golang (temporary)

    • For source code compilation, until the release is ready.

After install radare2, you can install simple by typing:

$ go get github.com/0xc0ffeec0de/bino
$ echo export PATH=$PATH:$(go env GOPATH)/bin/ >> ~/.bashrc

This will make sure that your shell load the correct executable path everytime, if you are using zsh change the .bashrc to .zshrc.

Disclaimer

The tool is currently in BETA and being actively developed, so feel free to contribute to the source code and find bugs.

Roadmap

The following features will be available soon:

  • Iterative shell
  • Code analysis subcommand
  • Linux and macOS (intel and ARM) pre-compiled binaries
  • Support to intel x86 (32 bits)
  • Support to ARM 32 and 64 bits mode
  • Full support to SSE instructions

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.