For anynone that is running the latest version of binwalk (Binwalk v2.3.3
) and when trying to extract squshfs filesystems, gets the following error:
WARNING: Extractor.execute failed to run external extractor 'sasquatch -p 1 -le -d 'squashfs-root' '%e'': [Errno 2] No such file or directory: 'sasquatch', 'sasquatch -p 1 -le -d 'squashfs-root' '%e'' might not be installed correctly
it might have to do that the sasquatch
project is missing or not working correctly.
From the binwalk installation guide run the following to download, build and install sasquatch
into your system:
# 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)
If a compile error occurs, you have to download and apply an unmerged patch, until the problem is fixed upstream:
# From inside the sasquatch directory
$ wget https://raw.githubusercontent.com/devttys0/sasquatch/82da12efe97a37ddcd33dba53933bc96db4d7c69/patches/patch0.txt
$ mv patch0.txt patches
$ ./build.sh
The following has been tested on Kali 2022.2 (Debian 5.17.11-1kali1
) with Binwalk v2.3.3
and squashfs-tools v4.3