GithubHelp home page GithubHelp logo

carbonara-project / carbonara-cli Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 1.0 4.47 MB

:computer: CLI client for Carbonara

License: BSD 2-Clause "Simplified" License

Python 100.00%
carbonara python malware-analysis reverse-engineering code-reuse disassembly radare2 idapro

carbonara-cli's Introduction

Carbonara-CLI

CLI client for Carbonara.

Analyze a binary and send the extracted info to the Carbonara server.

Install

You can install carbonara_cli from pip or directly from this repo. We suggest you to use a virtualenv.

From pip

python -m pip install carbonara_cli

From Github repo

Linux

sudo apt install git python python-pip
git clone https://github.com/Carbonara-Project/Carbonara-CLI.git
cd Carbonara-CLI
pip install -r requirements.txt
python setup.py install

Windows

git clone https://github.com/Carbonara-Project/Carbonara-CLI.git
cd Carbonara-CLI
python -m pip install -r requirements.txt
python setup.py install

Usage

You can use the carb script if it is in path or invoke it directly as python module with python -m carbonara_cli

carb [OPTIONS] <binary executable>
carb [OPTIONS] <binary executable> <IDA Pro database>
carb [OPTIONS] <binary executable> <radare2 project>

Options:

-h, --help              Show the help
-e, --exists            Know if the binary is already in the Carbonara database
-p, --proc <name>       Analyze and upload only a specified procedure
-s, --save              Save the json report as a file instead of uploading it to Carbonara
-l, --load <path>       Load a json report from the filesystem instead of analyzing the target binary
-i, --identify          Get a list of binaries (md5) that have procedures in common with the target
-r, --rename <ida|r2>   Create a script that renames each procedure with the name of a similar procedure in our server if the matching treshold is >= TRESHOLD
-t, --treshold <int>    Set TRESHOLD (optional, default 90)
-a, --arch <name>       Specify by hand the architecture of the binary (useful for blobs)
-b, --bits <32/64>      Specify by hand the bits of the binary (useful for blobs)

-idb <path>             Specify the IDA Pro database to use

-radare2                Specify radare2 executable path
-idacmd <path>          Specify IDA Pro 32 executable (ida.exe) path
-ida64cmd <path>        Specify IDA Pro 64 executable (ida64.exe) path
-reconfig               Force configure file to be regenerated automatically
-writeconfig            Write custom paths (radare and IDA) to config file

Supported architectures:

  • x86 32/64 bits
  • ARM 32/64 bits
  • MIPS 32/64 bits
  • PPC 32/64 bits

Demo

asciicast

Related packages

  • Carbonara-R2, a plugin for radare2 with suport to similar procedures renaming
  • Guanciale, the analysis engine library

carbonara-cli's People

Contributors

andreafioraldi avatar andreatulimiero avatar rop2bash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pombredanne

carbonara-cli's Issues

global name config not defined

on windows (because it's dump, stupid bill gates) from guanciale import * is not enough and must be also inserted from guanciale import config or something equivalent.

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.