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
- Run a basic scan using the
scanendpoint:
from pybinwalk import scan
result = basic_scan(image_path)
print(type(result))
# List
- Run an
extractionon 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)
- 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
Release files for binwalk-python-sdk 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| binwalk_python_sdk-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.34+ x86-64 | Details |
Release files / binwalk_python_sdk-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | binwalk_python_sdk-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 924.3 kB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
728d99c7db884e716fec05568a25920050e5e3548e8c79d30cb418ccc05e23a7
|
|
BLAKE2b-256 checksum How to use checksums |
0305a4e1386c532e6c0866a86846791c1a22a36a947983cf0b37acd31b7450b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|