본문 바로가기

Script

Dump Chrome LocalDB contents with python

 

 

import json
import pathlib
import ccl_chromium_localstorage

level_db_in_dir = pathlib.Path(R"C:\Users\user\AppData\Local\Microsoft\Edge\User Data\Default\Local Extension Settings\fcmfnpggmnlmfebfghbfnillijihnkoh")

with ccl_chromium_localstorage.LocalStoreDb(level_db_in_dir) as local_storage:
    for record in local_storage._ldb.iterate_records_raw():
        j=json.loads(record.value.decode('utf8'))
        if 'value' in j:
            print(j['value'])
        else:
            exit()