Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binwalk firmware extract issue in Ubuntu 22.04 LTS #618

Closed
iAmG-r00t opened this issue Nov 2, 2022 · 4 comments
Closed

binwalk firmware extract issue in Ubuntu 22.04 LTS #618

iAmG-r00t opened this issue Nov 2, 2022 · 4 comments

Comments

@iAmG-r00t
Copy link

So apt install of binwalk has an issue of missing sasquatch install. I went ahead and purged it, installed binwalk from this repo followed the guide faced this issue fixed it as suggested here but now when I try to extract this binary the files in 'extract_dir/squashfs-root/www/' are empty.

But when I install binwalk in Ubuntu 20.04.5, first I don't face any errors, two the files are extracted properly and are not empty. Ohhh and there aren't two squashfs-root directories.

Can someone try and see what the issue can be?

My Issue

image

image

Expectations

image

image

@iAmG-r00t
Copy link
Author

I hope I have explained it properly.

@jacopotediosi
Copy link

To correctly compile sasquatch on Ubuntu 22 apply devttys0/sasquatch#51 instead of devttys0/sasquatch#47:

cd /tmp
git clone --quiet --depth 1 --branch "master" https://github.com/devttys0/sasquatch
cd sasquatch
wget https://github.com/devttys0/sasquatch/pull/51.patch && patch -p1 <51.patch
sudo ./build.sh

Doing so, I see files extracted from your firmware aren't empty anymore.

@nrathaus
Copy link

Thank you for the help @jacopotediosi - this should be made part of the INSTALL process for binwalk.. not sure why its not

@Cossack9989
Copy link

lol https://github.com/devttys0/sasquatch/pull/51.patch, the patch also works on Debian12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants