A tool for viewing or extracting files from a SQUASHFS image.
Only v4.0 is supported.
SQUASHFS is mostly used for the rootfile system in home routers, like tp-link, or openwrt.
List files:
python3 dumpsqsh.py roootfs.squash
Extract files:
python3 dumpsqsh.py -d dst roootfs.squash
Dump filesystem tables:
python3 dumpsqsh.py --dump roootfs.squash
To support all compression modes, you may need to install some additional modules:
pip install python-lzo
pip install zstd
pip install lz4
Extracting:
sasquatch -f -li -c xz -d dst rootfs.squash
Listing:
sasquatch -ll rootfs.squash
Problem, is that sasquatch
fails to work properly on quite a few images.
- add option to view only specific files.
- support v2 and v3 formats
Willem Hengeveld itsme@xs4all.nl