From 2cc49d2e873057e1eaf7da2d737d1957abd33223 Mon Sep 17 00:00:00 2001 From: red Date: Tue, 29 Aug 2023 21:43:11 +0200 Subject: [PATCH] Update metamask2hashcat.py increase CT-length --- tools/metamask2hashcat.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/metamask2hashcat.py b/tools/metamask2hashcat.py index fe2f0e006..a2aa99774 100755 --- a/tools/metamask2hashcat.py +++ b/tools/metamask2hashcat.py @@ -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'])