美文网首页
Binwalk多平台安装教程

Binwalk多平台安装教程

作者: SevenBy | 来源:发表于2018-08-19 14:59 被阅读5409次

Binwalk 仓库地址
https://github.com/ReFirmLabs/binwalk.git


Before You Start

Binwalk supports Python 2.7 - 3.x. Although most systems have Python2.7 set as their default Python interpreter, binwalk does run faster in Python3. Installation procedures for both are provided below.

Installation

Installation follows the typical Python installation procedure:

# Python2.7
$ sudo python setup.py install
# Python3.x
$ sudo python3 setup.py install

NOTE: Older versions of binwalk (e.g., v1.0) are not compatible with the latest version of binwalk. It is strongly recommended that you uninstall any existing binwalk installations before installing the latest version in order to avoid API conflicts.

Dependencies

Besides a Python interpreter, there are no installation dependencies for binwalk. All dependencies are optional run-time dependencies, and unless otherwise specified, are available from most Linux package managers.

Although all binwalk run-time dependencies are optional, the python-lzma module is highly recommended for improving the reliability of signature scans. This module is included by default in Python3, but must be installed separately for Python2.7:

$ sudo apt-get install python-lzma

Binwalk uses the nosetest library for tests and coverage for test-coverage:

$ sudo pip install nose coverage

Binwalk uses the pycrypto library to decrypt some known encrypted firmware images:

# Python2.7
$ sudo apt-get install python-crypto
# Python3.x
$ sudo apt-get install python3-crypto

Binwalk uses pyqtgraph to generate graphs and visualizations, which requires the following:

# Python2.7
$ sudo apt-get install libqt4-opengl python-opengl python-qt4 python-qt4-gl python-numpy python-scipy python-pip
$ sudo pip install pyqtgraph
# Python3.x
$ sudo apt-get install libqt4-opengl python3-opengl python3-pyqt4 python3-pyqt4.qtopengl python3-numpy python3-scipy python3-pip
$ sudo pip3 install pyqtgraph

Binwalk's --disasm option requires the Capstone disassembly framework and its corresponding Python bindings:

# Python2.7
$ sudo apt-get install python-pip
$ sudo pip install capstone
# Python3.x
$ sudo apt-get install python3-pip
$ sudo pip3 install capstone

Binwalk relies on multiple external utilties in order to automatically extract/decompress files and data:

# Install standard extraction utilities
$ sudo apt-get install mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full cabextract cramfsprogs cramfsswap squashfs-tools sleuthkit default-jdk lzop srecord
# Install sasquatch to extract non-standard SquashFS images
$ sudo apt-get install zlib1g-dev liblzma-dev liblzo2-dev
$ git clone https://github.com/devttys0/sasquatch
$ (cd sasquatch && ./build.sh)
# Install jefferson to extract JFFS2 file systems
$ sudo pip install cstruct
$ git clone https://github.com/sviehb/jefferson
$ (cd jefferson && sudo python setup.py install)
# Install ubi_reader to extract UBIFS file systems
$ sudo apt-get install liblzo2-dev python-lzo
$ git clone https://github.com/jrspruitt/ubi_reader
$ (cd ubi_reader && sudo python setup.py install)
# Install yaffshiv to extract YAFFS file systems
$ git clone https://github.com/devttys0/yaffshiv
$ (cd yaffshiv && sudo python setup.py install)
# Install unstuff (closed source) to extract StuffIt archive files
$ wget -O - http://my.smithmicro.com/downloads/files/stuffit520.611linux-i386.tar.gz | tar -zxv
$ sudo cp bin/unstuff /usr/local/bin/

Note that for Debian/Ubuntu users, all of the above dependencies can be installed automatically using the included deps.sh script:

$ sudo ./deps.sh

Installing the IDA Plugin

If IDA is installed on your system, you may optionally install the binwalk IDA plugin:

$ python setup.py idainstall --idadir=/home/user/ida

Likewise, the binwalk IDA plugin can be uninstalled:

$ python setup.py idauninstall --idadir=/home/user/ida

Uninstalling Binwalk

If binwalk has been installed to a standard system location (e.g., via setup.py install), it can be removed by running:

# Python2.7
$ sudo python setup.py uninstall
# Python3
$ sudo python3 setup.py uninstall

Note that this does not remove any of the manually installed dependencies.

相关文章

  • Binwalk多平台安装教程

    Binwalk 仓库地址https://github.com/ReFirmLabs/binwalk.git Be...

  • Android 基础之 Git

    教程 Git 中文文档 Git教程-廖雪峰 安装 Windows 平台上安装Mac 平台上安装 配置 1. 配置用...

  • Kali安装python - lzma报错解决

      最近在Kali上安装binwalk,因为Kali默认使用python2.7,需要安装Python lzma模块...

  • windows下安装MongoDB

    1、安装 安装教程就不多说了,可参考如下的安装教程Windows 平台安装 MongoDB 2、配置 安装完成后最...

  • git安装

    转的,这个更清楚【原创】Windows平台下Git的安装与配置其他参考教程:安装git教程git用法git的安装与...

  • MongoDB安装

    window 这个安装菜鸟教程上面的安装就行Windows 平台安装 MongoDB 在新版的MongoDB是不需...

  • Visual Studio 2019安装教程

    windows平台:Visual Studio 官网下载 安装教程 安装包可以通过Visual Studio 官网...

  • 利用Composer安装 laravel框架

    Composer 的安装 1. Wondows 平台(引用菜鸟教程) Wondows 平台上,我们只需要下载 C...

  • 多译本对照

    圣经工具3.0 开始支持多译本对照。安装教程

  • ROS安装教程(1) - 安装

    ROS安装教程目录 ROS安装教程(1) - 安装(本章)ROS安装教程(2) - 配置ROS安装教程(3) - ...

网友评论

      本文标题:Binwalk多平台安装教程

      本文链接:https://www.haomeiwen.com/subject/ynuciftx.html