Skip to main content

Python library for running binwalk

Project description

Binwalk-python

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

Installation

Install via pip

pip install binwalk-python-sdk

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 Linux) using the Manager:
from pybinwalk import Manager

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

binwalk_python_sdk-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl (924.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

Details for the file binwalk_python_sdk-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for binwalk_python_sdk-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 728d99c7db884e716fec05568a25920050e5e3548e8c79d30cb418ccc05e23a7
MD5 47072e698cee36c46e597b7d5e171ded
BLAKE2b-256 0305a4e1386c532e6c0866a86846791c1a22a36a947983cf0b37acd31b7450b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page