Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse chrome Cache #12

Open
nithinkumarscaler opened this issue Jul 4, 2018 · 3 comments
Open

Unable to parse chrome Cache #12

nithinkumarscaler opened this issue Jul 4, 2018 · 3 comments

Comments

@nithinkumarscaler
Copy link

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
main()
File "chromagnonCache.py", line 89, in main
args.getattribute("Cache Directory"), args.u)
File "/home/<>/<>/Chromagnon/chromagnon/cacheParse.py", line 58, in parse
cacheBlock = CacheBlock(path + "index")
File "/home/<>/<>/Chromagnon/chromagnon/cacheBlock.py", line 85, in init
raise Exception("Invalid Chrome Cache File")
Exception: Invalid Chrome Cache File

@nithinkumarscaler
Copy link
Author

When i printed the magicnumber, the output is:
2809289776

@asfaltboy
Copy link

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:

@mcebular
Copy link

mcebular commented Apr 24, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants