1

I used binwalk to extract firmware.bin image, the extracted content is squashfs-root dir, and a separate dpc.squashfs file. Then I used sasquatch utility to extract content of dpc.squashfs file, and I got the same squashfs-root directory. I compared content of both squashfs-root directories and find, that the squashfs-root dir extracted with binwalk have www and www_safe folders, whereas in squashfs-root dir extracted with sasquatch that folders are missing. Why the extracted content differs?

  • 1
    Binwalk uses unsquashfs, or one of the unsquashfs's from the firmware-mod-kit, so this may be a bug in sasquatch. You can try forcing the compression type in sasquatch with the -c option instead of letting sasquatch try to guess, which might help. It's probably best to submit this as an issue on the sasquatch github page you linked to, along with a copy of the firmware image. – devttys0 Oct 28 '14 at 13:38
  • 1
    I attempted to replicate this with firmware from a Vonage ATA, as it was the only firmware I could find that had both the www and www_safe directories you mentioned. It extracted fine both through binwalk and directly with sasquatch. Again, if you're having bugs with either of these tools, it should probably be reported to the binwalk / sasquatch project pages rather than here. – devttys0 Oct 30 '14 at 15:57
  • Thank you for the help. I tested sasquatch more times, and in my tests it extracts full content of the .squashfs file, include www and www_safe dirs, even without the -c lzma option. Don't know why this happen when I tested first time. Maybe this somehow related to file permissions, as sometimes these directories been extracted with drwx--x--x (711) permission, and this prevents accessing them. Sometimes it been extracted with drwxr-xr-x (755) permission. It extracted fine with binwalk, in fact, it wasn't necessary to use sasquatch tool, but I didn't know content of this squashfs-root. – triwo Nov 5 '14 at 19:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.