Debian

unsquashfs 失敗

  • November 28, 2019

Debian 7.0,我使用 binwalk 提取了firmware.bin 映像。提取的內容是squashfs-root包含子目錄的文件夾和一個單獨的file.squashfs文件。我試過unsquashfs這個file.squashfs文件,但操作失敗:

unsquashfs -l file.squashfs 
Can't find a SQUASHFS superblock on file.squashfs

問題是什麼?

**編輯:**是的,sasquatch file.squashfs作品:

sasquatch D1000.squashfs
SquashFS version [768.256] / inode count [-1073676288] suggests a SquashFS image of a different endianess
Non-standard SquashFS Magic: qshs
Reading a different endian SQUASHFS filesystem on D1000.squashfs
Parallel unsquashfs: Using 2 processors
Trying to decompress using default gzip decompressor...
Trying to decompress with lzma...
Detected lzma compression
413 inodes (430 blocks) to write

由於file無法辨識,供應商可能使用了自定義 SquashFS 魔術簽名。我希望這unsquashfs也會給您一個關於無法找到有效超級塊的錯誤。

試一試大腳野鳥;它是 unsquashfs 的修改版本,試圖支持此類供應商黑客攻擊。

引用自:https://unix.stackexchange.com/questions/162926