Support #739
Updated by Daniel Curtis almost 9 years ago
This is a simple guide on setting up binwalk on Arch Linux. I've also included additional tools that were required while trying out the Damn Vulnerable Router Firmware project.
h2. Prepare the Environment
* Make sure the system is up to date:
<pre>
sudo pacman -Syu
</pre>
h2. Install binwalk
* Install binwalk:
<pre>
sudo pacman -S binwalk
</pre>
#* And also install a few extra dependencies:
<pre>
sudo pacman -S python-opengl python-capstone arj cabextract cpio gzip mtd-utils p7zip squashfs-tools tar bzip2 unrar xz lhasa sleuthkit
</pre>
#* Add the optional firmware-mod-kit package from the AUR:
<pre>
yaourt firmware-mod-kit
</pre>
#* Install sasquatch to extract non-standard squashfs images:
<pre>
git clone https://github.com/devttys0/sasquatch
cd sasquatch
./build.sh
</pre>
h2. (Optional) Qemu-user-static
* Install the qemu-user-static package from the AUR:
<pre>
yaourt qemu-user-static
</pre>
#* And add the binfmt-support package:
<pre>
yaourt binfmt-support
</pre>
h2. (Optional) Install Buildroot
* Install a few dependencies:
<pre>
sudo pacman -S base-devel rsync wget
</pre>
* Clone the buildroot source:
<pre>
git clone git://git.buildroot.net/buildroot
</pre>
h2. Resources
* https://github.com/devttys0/binwalk
* https://www.praetorian.com/blog/getting-started-with-damn-vulnerable-router-firmware-dvrf-v0.1