Update metamask2hashcat.py

increase CT-length
pull/3859/head
red 8 months ago committed by GitHub
parent c2de4961a3
commit 2cc49d2e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,8 +2,8 @@
# -*- coding: utf-8 -*-
# Author: Gabriele 'matrix' Gristina
# Version: 2.0
# Date: Thu 12 Aug 2021 06:44:14 PM CEST
# Version: 2.1
# Date: Thu 28 Aug 2023 05:12:40 PM CEST
# License: MIT
# Extract metamask vault from browser and save to file, then you can use this tool
@ -66,10 +66,10 @@ def metamask_parser(file, shortdata):
else:
# extract only first 16 bytes of ciphertext
# extract first 32 bytes of ciphertext for enhanced resistance to false-positives
cipher_bin = base64.b64decode(j['cipher'])
j['cipher'] = base64.b64encode(cipher_bin[:16]).decode("ascii")
j['cipher'] = base64.b64encode(cipher_bin[:32]).decode("ascii")
print('$metamaskMobile$' + j['salt'] + '$' + j['iv'] + '$' + j['cipher'])

Loading…
Cancel
Save