MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.69k stars 4.78k forks source link

The way idb is stored on edge is different from chrome. #24304

Open Miooiio opened 2 months ago

Miooiio commented 2 months ago

What is this about?

I have an old computer that won't boot but I can copy the data, I tried to find the IDB file but it seems that edge's IDB file is shared by all the plugins so it can't be decrypted, how do I do that?

Scenario

No response

Design

No response

Technical Details

No response

Threat Modeling Framework

No response

Acceptance Criteria

No response

Stakeholder review needed before the work gets merged

References

No response

Memexurer commented 2 months ago

The only difference in restoring ldb from edge is that there is a different extension id: ejbalbakoplchlghecdalmeeeajnimhm

So you just go to %localappdata%\Microsoft\Edge\User Data\Default\Local Extension Settings\ejbalbakoplchlghecdalmeeeajnimhm, and then get the ldb from there

Memexurer commented 2 months ago

Also you can use this modified script based on https://github.com/cclgroupltd/ccl_chrome_indexeddb to extract keys: dump_leveldb.py.txt You can use it like this: python dump_leveldb.py.txt "%localappdata%\Microsoft\Edge\User Data\Default\Local Extension Settings\ejbalbakoplchlghecdalmeeeajnimhm"