Skip to main content

Simple Tools for decode crypto data, from extensions wallet, Metamask, Ronin, Brawe, etc.

Project description

WalletDecode

N|Solid

Simple Tools for decode crypto data, from extensions wallet, Metamask, Ronin, Brawe, TronLink(old), etc.

Installation

Python requires Python.org v3,7+ to run. Install the dependencies and devDependencies and start the server.

python -m pip install pip
python -m pip install --upgrade pip
pip install pycryptodome

Using Single Version

Decrypt hash by one password:

default Metamask path in chrome:

C:\Users\root\AppData\Local\Google\Chrome\User Data\Default\Local Extension Settings\nkbihfbeogaeaoehlefnkodbefgpgknn

p.s payload search from log file, ******.log,

from WalletDecode import extensionWalletDecrypt
pssw = "qwerty123"
payload = {"data": "M5YTg9f1PP62H........ATR/iKzdvhHdF", "iv": "6CD......Cg==", "salt": "TkHQ2......fxaSC/g="}
d1 = extensionWalletDecrypt()
obj = d1.decryptSingle(pssw, payload)
print(obj)

##Output:

[{'type': 'HD Key Tree', 'data': {'mnemonic': 'result slam keen employ smile capable crack network favorite equal limit orphan', 'numberOfAccounts': 1, 'hdPath': "m/44'/60'/0'/0"}}, {'type': 'Trezor Hardware', 'data': {'hdPath': "m/44'/60'/0'/0", 'accounts': [], 'page': 0, 'paths': {}, 'perPage': 5, 'unlockedAccount': 0}}, {'type': 'Ledger Hardware', 'data': {'hdPath': "m/44'/60'/0'", 'accounts': [], 'accountDetails': {}, 'implementFullBIP44': False}}]

Using List Version

from WalletDecode import extensionWalletDecrypt
pssw = ['qwerty123', 'qwerty321', 'qwerty1212', 'qwe211', 'qweqwerty0']
payload = {'data': 'M5YTg9f1PP62H........ATR/iKzdvhHdF', 'iv': '6CD......Cg==', 'salt': 'TkHQ2......fxaSC/g='}
d1 = extensionWalletDecrypt()
obj = d1.decryptList(pssw, payload)
print(obj)

Note: this app cant replace HashCat app, use only actual passwords.

Best practice: virtual environments

In order to avoid problems with pip packages in different versions or packages that install under the same folder (i.e. pycrypto and pycryptodome) you can make use of a so called virtual environment. There, the installed pip packages can be managed for every single project individually.

To install a virtual environment and setup everything, use the following commands:

# install python3 and pip3
sudo apt update
sudo apt upgrade
sudo apt install python3
sudo apt install python3-pip

# install virtualenv
pip3 install virtualenv

# install and create a virtual environment in your target folder
mkdir target_folder
cd target_folder
python3 -m virtualenv .

# now activate your venv and install pycryptodome
source bin/activate
pip3 install pycryptodome

# check if everything worked: 
# start the interactive python console and import the Crypto module
# when there is no import error then it worked
python
>>> from Crypto.Cipher import AES
>>> exit()

# don't forget to deactivate your venv again
deactivate

For more information, see docs.python-guide.org.

License

MIT

Decoder master project (c)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

walletdecode-1.4.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

walletdecode-1.4-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page