Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ekuiter/dcaec22356a093be2ae63f3ba367da5c to your computer and use it in GitHub Desktop.

Select an option

Save ekuiter/dcaec22356a093be2ae63f3ba367da5c to your computer and use it in GitHub Desktop.
Extract binary files from Firefox cache
Go to the cache entry of the file: about:cache-entry?storage=disk&context=&eid=&uri=<the URI>
Copy the entire HEX dump into an editor that can handle large files and save as "file.dat". Notepad++ works for me.
cat file.dat | cut -d: -f2 | cut -d" " -f2-34 > file.hex && xxd -r -p file.hex my_file.mp3 (or whatever suffix the file has)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment