Installing Binwalk

Most Linux users running a Debian or RedHat based system can skip this and go straight to the Easy Install; others may need to perform a manual installation.

Binwalk requires Python 2.7 or newer. While Python 3 is supported, it is not recommended due to performance concerns. Nearly all Linux distributions ship with Python 2.7 pre-installed, but if in doubt you can check your Python version from the command line:

1
python --version

Easy Install


This is the preferred method of installation. Binwalk and all prerequisite packages can be installed using the included easy_install.sh script:

1
sudo ./easy_install.sh --sumount

WARNING: The –sumount argument will allow you, and all other users on your system, to mount and unmount file systems without root privileges. If this is undesirable, simply do not specify the –sumount argument when running easy_install.sh. However, in order for binwalk to extract/mount certain file systems, you will either need to run binwalk as root, or grant your user account privileges to mount and unmount file systems.

Manual Installation


The only required dependency for binwalk is the python-magic module. This can typically be installed using your system’s package manager (aptitude, yum, etc).

WARNING: Do NOT install python-magic from pypi or github. Use the official python-magic module bundled with libmagic.

If you want fuzzy hashing features, you’ll need to install the libfuzzy library, either from your distro’s repositories (use the libfuzzy2 package in Debian systems), or from source.

If you want to be able to generate entropy plot graphs, you will also need to install pyqtgraph and its associated dependencies (note that you may also need to install the OpenGL driver for your video card):

  • python-opengl
  • python-qt4
  • python-qt4-gl
  • python-numpy
  • python-scipy

If you want automated extraction, you will also need to install:

  • mtd-utils
  • zlib1g-dev
  • liblzma-dev
  • gzip
  • bzip2
  • tar
  • unrar
  • arj
  • p7zip
  • p7zip-full
  • openjdk-6-jdk
  • firmware-mod-kit

With the desired dependencies satisfied, binwalk can be installed using the included setup.py script:

1
sudopython ./setup.py install

For cyber security and computer security. Click Here.