1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-21 15:48:08 +00:00

Update metamask2hashcat.py

increase CT-length
This commit is contained in:
red 2023-08-29 21:43:11 +02:00 committed by GitHub
parent c2de4961a3
commit 2cc49d2e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'])