mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-14 03:39:09 +00:00
Update metamask2hashcat.py
increase CT-length
This commit is contained in:
parent
c2de4961a3
commit
2cc49d2e87
@ -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…
Reference in New Issue
Block a user