{"id":18323083,"url":"https://github.com/berdav/snappy-fox","last_synced_at":"2025-04-05T23:31:26.602Z","repository":{"id":54863636,"uuid":"332432155","full_name":"berdav/snappy-fox","owner":"berdav","description":"🦀🦊 Snappy (Firefox morgue cache format) files de-compressor, works even if they're corrupted","archived":false,"fork":false,"pushed_at":"2025-01-30T11:48:40.000Z","size":236,"stargazers_count":20,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T13:44:34.297Z","etag":null,"topics":["cache","firefox","forensics","whatsapp-web"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/berdav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-24T11:29:34.000Z","updated_at":"2025-01-30T11:48:43.000Z","dependencies_parsed_at":"2024-11-05T18:44:54.873Z","dependency_job_id":null,"html_url":"https://github.com/berdav/snappy-fox","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berdav%2Fsnappy-fox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berdav%2Fsnappy-fox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berdav%2Fsnappy-fox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berdav%2Fsnappy-fox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/berdav","download_url":"https://codeload.github.com/berdav/snappy-fox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415783,"owners_count":20935383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","firefox","forensics","whatsapp-web"],"created_at":"2024-11-05T18:27:06.658Z","updated_at":"2025-04-05T23:31:21.592Z","avatar_url":"https://github.com/berdav.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snappy-fox 🦀🦊\n\n\u003ca href=\"https://github.com/berdav/snappy-fox/blob/master/LICENSE\"\u003e\n\u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/berdav/snappy-fox.svg?color=blue\"\u003e\n\u003c/a\u003e\n\nSnappy-fox is a Snappy file decompressor (i.e. morgue cache of Firefox)\nwhich does not have dependencies. It can also reconstruct corrupted\nfiles.\n\n## Why?\nOnline applications such as whatsapp web (web.whatsapp.com) save cache\nfiles (e.g. images) in a compressed way.\n\nYou can recognize these files searching for the pattern sNaPpY:\n```bash\ngrep 'sNaPpY' ~/.mozilla/firefox/*/storage/default/*/cache/morgue/*/*\n```\n\nThis application can help the retrieval of such cache files.\n\n## Setup\nJust compile this application, you will need a C compiler\n(gcc or clang) and make\n```bash\nsudo apt install make gcc\n```\n\nThen just compile the application\n```bash\nmake\n```\n\nYou can add debug prints with\n```bash\nmake CFLAGS=-DDEBUG\n```\n\n## How?\n\nThe usage of the application is pretty simple:\n```bash\n./snappy-fox \u003cinput-file\u003e \u003coutput-file\u003e\n```\nThe input or the output files can be `-` to use, respectively, stdin and\nstdout.\n\nFor instance you can do:\n```bash\nmkdir /tmp/extracted-cache-whatsapp\nfor f in\n  find ~/.mozilla/firefox/**/storage/default/https+++web.whatsapp.com/cache/ -name '*.final';\n  do\n    ./snappy-fox \"$f\" \"/tmp/extracted-cache-whatsapp/$(basename $f)\"\ndone\n```\n\nit will extract all your cache files in the\n`/tmp/extracted-cache-whatsapp` directory.\n\n## Example\n\nYou can try the application with the example image present in the\nexample directory:\n```bash\n./snappy-fox example/exampleimage.snappy example/exampleimage.jpg\n```\n\n![example image](https://github.com/berdav/snappy-fox/blob/master/example/exampleimage.jpg?raw=true)\n\n`alteredimage.snappy` is a corrupted version of the image, you can see\nthe retrival performance of the tool using:\n```bash\n./snappy-fox --ignore_offset_errors example/alteredimage.snappy example/alteredimage.jpg\n```\n\n![altered image](https://github.com/berdav/snappy-fox/blob/master/example/alteredimage.jpg?raw=true)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberdav%2Fsnappy-fox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberdav%2Fsnappy-fox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberdav%2Fsnappy-fox/lists"}