Chromagnon
Chromagnon copied to clipboard
Unable to parse chrome Cache
When i run python chromagnonCache.py ~/.cache/google-chrome/Default/Cache/ I get Invalid Chrome cache file. (Under the above directory there is index file.)
Traceback (most recent call last):
File "chromagnonCache.py", line 103, in
When i printed the magicnumber, the output is: 2809289776
I believe this is due to chrome code switching to "Very Simple HTTP Cache Backend" by default.
from the current index file, I was able to observe a magic that matches 0xfcfb6d1ba7725c30
which is the updated magic signature of the format.
Unfortunately I haven't got more time to look into parsing it, I
Refs:
- https://www.chromium.org/developers/design-documents/network-stack/disk-cache/very-simple-backend
- https://github.com/chromium/chromium/blob/4f9c35c3635144e2c2d1b87d09cbcf076d138b66/net/tools/cachetool/cachetool.cc
- https://github.com/chromium/chromium/blob/2ca8c5037021c9d2ecc00b787d58a31ed8fc8bcb/net/disk_cache/simple/simple_entry_format.h
As noted in the Chromium source, disk cache implementation, disk caches use different implementations on Windows/Linux OS.
Trying to export cache with this project will fail on Linux (because Chrome uses simple cache), however it still works on Windows.