Firefox morgue cache files de-compressor
Go to file
Davide Berardi a5958d93d1 Merge branch 'master' of ssh://github.com/berdav/snappy-fox 2021-01-24 12:39:55 +01:00
LICENSE Create LICENSE 2021-01-24 12:33:15 +01:00
Makefile First commit, snappy-fox 2021-01-24 12:27:39 +01:00
README.md Morgue file find command in README 2021-01-24 12:39:34 +01:00
snappy-fox.c Snappy fuzzer 2021-01-24 12:28:41 +01:00

README.md

Snappy-fox

Snappy-fox is a morgue cache decompressor for Firefox wich does not have dependencies.

Why?

Online applications such as whatsapp web (web.whatsapp.com) saves cache files (e.g. images) in a compressed way.

You can recognize these files searching for the pattern sNaPpY:

grep 'sNaPpY' ~/.mozilla/firefox/*/storage/default/*/cache/morgue/*/*

This application can help the retrieval of such cache files.

Setup

Just compile this application, you will need a C compiler (gcc or clang) and make

sudo apt install make gcc

Then just compile the application

make

You can add debug prints with

make CFLAGS=DEBUG

How?

The usage of the application is pretty simple:

$ snappy-fox <input-file> <output-file>

The input or the output files can be - to use, respectively stdin and stdout.

For instance you can do:

mkdir /tmp/extracted-cache-whatsapp
for f in
  find ~/.mozilla/firefox/**/storage/default/https+++web.whatsapp.com/cache/ -name '*.final';
  do
    snappy-fox "$f" "/tmp/extracted-cache-whatsapp/$(basename $f)"
done

And it will extract all your cache files in the /tmp/extracted-cache-whatsapp directory.