08-11-2023, 05:12 PM
(This post was last modified: 08-11-2023, 05:19 PM by rodrigo.Brasil.)
Run this:
It will show:
5e486282398373e0b4bedf01db16b795:PásztorZs201
If I open the potfile in a hex editor, I have
But, if I try to replicate it in python with this code:
It will not work, but the same code worked for all other password without non-english character!
How to force hashcat to print the $HEX[] format? What encoding mistake I am doing?
Code:
hashcat.exe -m 1000 --potfile-disable 5e486282398373e0b4bedf01db16b795 -a 3 P?b?bsztorZs201 --quiet
It will show:
5e486282398373e0b4bedf01db16b795:PásztorZs201
If I open the potfile in a hex editor, I have
Code:
50 C3 A1 73 7A 74 6F 72 5A 73 32 30 31
P Ã ¡ s z t o r Z s 2 0 1
But, if I try to replicate it in python with this code:
Code:
import hashlib, binascii
val = bytearray.fromhex("50c3a1737a746f725a73323031")
hashcalc = binascii.hexlify(hashlib.new('md4', val).digest()).decode()
print(f"{hashcalc} != 5e486282398373e0b4bedf01db16b795")
# d65e9927549a762507bae550ba54969a != 5e486282398373e0b4bedf01db16b795
It will not work, but the same code worked for all other password without non-english character!
How to force hashcat to print the $HEX[] format? What encoding mistake I am doing?