hindsight
hindsight copied to clipboard
Cache objects not found in Chrome on macOS
I ran both hindsight_gui.py and the command line version hindsight.py to test this issue, with identical results.
Running from git master at commit 13b7a641d4 (when run, it announces v20201120) in macOS Catalina under Python 3.9.0 with target browser macOS Catalina Chrome Version 87.0.4280.141, it found 0 cache records.
I specified Input Path: /Users/sidney/Library/Application Support/Google/Chrome/Default
and Cache Path: /Users/sidney/Library/Caches/Google/Chrome/Default/Cache/
.
I ran hindsight_gui.py and entered the above paths in the browser GUI window, then clicked Run. For the command line form of the test, I used the command
python hindsight.py -i "/Users/sidney/Library/Application Support/Google/Chrome/Default" -o ~/tmp/hindsight -b Chrome -l hindsight.log -c "/Users/sidney/Library/Caches/Google/Chrome/Default/Cache/" --temp_dir hindsight_tmp
Here are the first lines of Parsed Artifacts in the Results page in the GUI version
Detected Chrome version: | 87 |
URL records: | 21068 |
Download records: | 958 |
Cache records: | 0 |
The command line version output the same numbers.
I expected to get more than 0 cache records.
When I looked in hindsight.log I found (snipping out timestamps for brevity)
| I | Cache items from /Users/sidney/Library/Caches/Google/Chrome/Default/Cache/:
| E | - Failed to parse index block file
Steps to reproduce:
- In macOS Catalina (didn't try elsewhere) with Chrome version 87, run Chrome so there should be something in its cache.
- Either run the hindsight.py command line as shown above, or follow the rest of these steps for the GUI version
- Start up hindsght_gui from the command line using python 3.9.0
- In a browser, go to http://localhost:8080/ to access the hindsight GUI
- Enter /Users/YOURUSERNAME/Library/Application Support/Google/Chrome/Default in the Input Path box
- Enter /Users/YOURUSERNAME/Library/Caches/Google/Chrome/Default/Cache in the Cache Path box
- Click on the Run button
Expected results: more than 0 cache records found
Actual results: 0 cache records found, and hindsight.log shows an error Failed to parse index block file