Skip to content

Tools to extract and decrypt metamask wallets

License

Notifications You must be signed in to change notification settings

cyclone-github/metamask_pwn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Readme Card

metamask_pwn

Toolset to extract and decrypt metamask vaults (wallets)

Metamask Vault Hash Extractor

Tool to extract metamask vaults to JSON and hashcat compatible formats

Info:

Metamask Vault location for Chrome extensions:

  • Linux: /home/$USER/.config/google-chrome/Default/Local\ Extension\ Settings/nkbihfbeogaeaoehlefnkodbefgpgknn/
  • Mac: Library>Application Support>Google>Chrome>Default>Local Extension Settings>nkbihfbeogaeaoehlefnkodbefgpgknn
  • Windows C:\Users\$USER\AppData\Local\Google\Chrome\User Data\Default\Local Extension Settings\nkbihfbeogaeaoehlefnkodbefgpgknn

Usage:

  • Linux: ./metamask_extractor.bin {metamask_vault_dir}
  • Windows: metamask_extractor.exe {metamask_vault_dir}

Compile from source:

  • If you want the latest features, compiling from source is the best option since the release version may run several revisions behind the source code.
  • This assumes you have Go and Git installed
    • git clone https://github.com/cyclone-github/metamask_pwn.git
    • cd metamask_pwn
    • cd metamask_extractor
    • go mod init metamask_extractor
    • go mod tidy
    • go build -ldflags="-s -w" metamask_extractor.go
  • Compile from source code how-to:

Metamask Vault Decryptor

POC tool to decrypt metamask vault wallets

This tool is proudly the first publicly released Metamask Vault decryptor / cracker to support the new Metamask wallet vaults which have a dynamic iteration.

./metamask_decryptor_amd64.bin -h metamask_json.txt -w wordlist.txt
 ------------------------------------ 
| Cyclone's Metamask Vault Decryptor |
 ------------------------------------ 

Vault file:     metamask_json.txt
Valid Vaults:   1
CPU Threads:    16
Wordlist:       wordlist.txt
Working...

Decrypted: 0/1  5430.89 h/s     00h:01m:00s

Info:

  • Supports previous Metamask vaults as well as new vaults with "KeyMetadata" which have dynamic iterations
  • If you need help extracting Metamask vaults, use Metamask Extractor https://github.com/cyclone-github/metamask_pwn
  • Metamask Vault Decryptor is superseded by hashcat, however, Metamask Vault Decryptor also displays the seed phrase alongside the vault password, which hashcat does not currently support

Example vaults supported:

  • Old vault format: {"data": "","iv": "","salt": ""}
  • New vault format: {"data": "","iv": "","keyMetadata": {"algorithm": "PBKDF2","params": {"iterations": }},"salt": ""}

Usage example:

  • ./metamask_decryptor.bin -h {wallet_json} -w {wordlist}

Output example:

If the tool successfully decrypts the vault, tool will print the vault json, seed phrase and vault password

Decrypted Vault: '{}'
Seed Phrase:    ''
Vault Password: ''

Compile from source:

  • If you want the latest features, compiling from source is the best option since the release version may run several revisions behind the source code.
  • This assumes you have Go and Git installed
    • git clone https://github.com/cyclone-github/metamask_pwn.git
    • cd metamask_pwn
    • cd metamask_decryptor
    • go mod init metamask_decryptor
    • go mod tidy
    • go build -ldflags="-s -w" metamask_decryptor.go
  • Compile from source code how-to:

About

Tools to extract and decrypt metamask wallets

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages