Skip to content

FauvidoTechnologies/binwalk-python-sdk

Repository files navigation

Binwalk-python

This is a python SDK for using Binwalk (which is now a Rust project). You can install this library from PyPI.

Note

This library is not exposing every possible feature of binwalk yet. In due time, it might

Installation

Install via pip

pip install binwalk-python-sdk

or build it from this repo

git clone https://github.com/FauvidoTechnologies/binwalk-python-sdk
cd binwalk-python-sdk
pip install -e .

Quickstart

  1. Run a basic scan using the scan endpoint:
from pybinwalk import scan

result = basic_scan(image_path)
print(type(result))
# List
  1. Run an extraction on a binary and save the results to a specified directory:
from pybinwalk import extract

in_bin = "/path/to/input/binary"
out_dir = "/path/to/output/DIR"

result = extract(in_bin, out_dir)
  1. Install dependencies for your OS (currently supports Ubuntu) using the Manager:
from pybinwalk import Manager

Manager(stream=True).handle_deps()		# This produces a verbose streaming log as it installs all dependencies

About

A python library for running Binwalk

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published