Firmware – Analyse tool – Binwalk (software)

binairy code

Website

Download Binwalk @ Github

Informatie (ENG)

Binwalk is a tool for searching a given binary image for embedded files and executable code. Specifically, it is designed for identifying files and code embedded inside of firmware images, it uses the libmagic library, so it is compatible with magic signatures created for the Unix file utility.

Binwalk also includes a custom magic signature file which contains improved signatures for files that are commonly found in firmware images such as compressed/archived files, firmware headers, Linux kernels, bootloaders, filesystems, etc.

Features:

  • Find and extract interesting files / data from binary images
  • Find and extract raw compression streams
  • Identify opcodes for a variety of architectures
  • Perform data entropy analysis
  • Diff an arbitrary number of files

binwalk scan

binwalk hex verschil

binwalk graph

Installatie met apt-get

Binwalk kan geïnstalleerd worden met het commando:  sudo apt-get install binwalk

binwalk_linux_01 binwalk_linux_02

Installatie vanuit Source met Python

Het APT-GET commando werkt niet op de Raspberry Pi of Debian installatie!

Nadat je het GZIP archief hebt uitgepakt, ga naar de folder waar setup.py  staat en start de installatie met het commando:

sudo python setup.py install

Installatie vanuit Source met Python op Windows

Nadat je Python v2.7 hebt geinstaalleerd op Windows, pak je het binwalk archief uit in [pythonfolder]\binwalk-2.1.0, zodat het bestand setup.py daar in staat.

Start de installatie van binwalk (als module van python) met het commando:

python binwalk-2.1.0\setup.py install

Start binwalk met het commando: python scripts\binwalk

Binwalk op windows

Je kan binwalk ook op windows gebruiken via Cygwin, het was even puzzelen en zoeken waar “\usr\local\etc\binwalk\magic.binwalk” moest staan en om de benodigde CYGWIN DLL bestanden er bij te vissen, maar het is gelukt!, download Binwalk 0.5.0 hieronder.