firmadyne / sasquatch

SquashFS filesystem extraction tool, forked to make errors fatal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

A modified unsquashfs utility that attempts to support as many hacked-up vendor-specific SquashFS implementations as possible.

If the vendor has done something simple like just muck a bit with the header fields, this tool should sort it out.

If the vendor has made changes to the underlying LZMA compression options, or to how these options are stored in the compressed data blocks, this tool will attempt to automatically resolve such customizations via a brute-force method.

Additional advanced command line options have been added for testing/debugging.

Very beta.

Prerequisites

You need a C/C++ compiler, plus the liblzma, liblzo and zlib development libraries:

$ sudo apt-get install build-essential liblzma-dev liblzo2-dev zlib1g-dev

Installation

$ make
$ sudo make install

Modified Files

The following files have been modified from their original version. They have been formatted to fit your screen:

  • compressor.c
  • compressor.h
  • error.h
  • lzma_wrapper.c
  • Makefile
  • process_fragments.c
  • read_fs.c
  • squashfs_fs.h
  • unsquashfs.c
  • LZMA/lzmalt/WindowOut.h
  • LZMA/lzmalt/LZMADecoder.c
  • LZMA/lzmadaptive/C/7zip/Compress/LZMA_Lib/ZLib.cpp
  • LZMA/lzmadaptive/C/7zip/Compress/LZMA_Lib/lzmadaptive.h

About

SquashFS filesystem extraction tool, forked to make errors fatal

License:GNU General Public License v2.0


Languages

Language:C 76.6%Language:C++ 21.2%Language:Makefile 1.2%Language:HTML 1.0%Language:Objective-C 0.1%