The script is looking for a file called sessionstore.jsonlz4 in the current directory, but it can't find it. This file is typically found in your Firefox/Waterfox profile directory, not in your current working directory.
Finding the sessionstore.jsonlz4 file
For Waterfox (based on your script path), the profile directory is usually located at:
~/.waterfox/
# or sometimes
~/.mozilla/firefox/
To find your Waterfox/Firefox profiles and the sessionstore file:
# Find all sessionstore.jsonlz4 files in common locations
find ~/.waterfox ~/.mozilla -name "sessionstore.jsonlz4" 2>/dev/null
You'll likely see output like:
/home/kali/.waterfox/xxxxxxxx.default/sessionstore.jsonlz4
/home/kali/.waterfox/yyyyyyyy.default-release/sessionstore.jsonlz4
Running the script correctly
Once you've found the file, you have three options:
Option 1: Run the script from the directory containing sessionstore.jsonlz4
cd /home/kali/.waterfox/xxxxxxxx.default/ # Replace with your actual profile path
python3 /home/kali/waterfox/decompress_mozilla_lz4.py
Option 2: Copy the sessionstore file to your current directory
cp /home/kali/.waterfox/xxxxxxxx.default/sessionstore.jsonlz4 .
python3 /home/kali/waterfox/decompress_mozilla_lz4.py
Option 3: Modify the script to accept a file path as an argument
If the script doesn't already support command-line arguments, you could modify it or just run it with the full path. Many decompression scripts accept the file path as an argument:
python3 /home/kali/waterfox/decompress_mozilla_lz4.py /home/kali/.waterfox/xxxxxxxx.default/sessionstore.jsonlz4
Important Notes
-
Make sure Waterfox is closed before copying or working with the sessionstore file, as it may be locked or actively written to while the browser is running.
-
Multiple profiles: If you have multiple Waterfox profiles, make sure you're using the correct one. The active profile usually has the most recent modification time on its files.
-
Backup: Consider making a backup copy of the sessionstore file before processing it:
cp sessionstore.jsonlz4 sessionstore.jsonlz4.backup
If you're still having issues, share:
- The output of the
find command above
- The first few lines of the
decompress_mozilla_lz4.py script (to see how it expects to receive the file path)