Skip to content

Instantly share code, notes, and snippets.

@AlLongley
Last active December 3, 2020 03:51
Show Gist options
  • Save AlLongley/c164245ebabf98d134e73ee45cbee7b1 to your computer and use it in GitHub Desktop.
Save AlLongley/c164245ebabf98d134e73ee45cbee7b1 to your computer and use it in GitHub Desktop.
import glob
#AppData\Local\Google\Chrome\User Data\Default\shared_proto_db\*"
logfiles = glob.glob("*.ldb")
logfiles.extend(glob.glob("*.log"))
for fname in logfiles:
with open(fname,'rb') as fd:
ldbfile = fd.read()
downloads=[]
for entry in ldbfile.split(b'21_download,')[1:]:
rawstr=' '.join(''.join([chr(x) if 32<x<127 else " " for x in entry]).split())
downloads.append(rawstr)
print(rawstr[200:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment