salt+password md5
#1
I have a salt: 7848783748378478374837
I have a password: simple123
I generated an md5 hash by prepending salt to password.  So the salt and password become: 7848783748378478374837simple123
Then compute the salted password string using md5 as:  2576c3ad507afb89caba6d98cd67e43c

I stored the salt and mdf in a file "sample.txt" using what i (newbie) believe is mode 20 md5(salt$.password$) format:   
7848783748378478374837:2576c3ad507afb89caba6d98cd67e43c

I created a passwords file passwords.txt:
simple123
simpleabc
simplezyz

I execute: hashcat -m 20 -a 0 sample.txt passwords.txt

I get an exception:  Hashfile 'sample.txt' on line 1 (784878...2576c3<some hash>e43c): Token length exception.  No hashes loaded.  


python 3 code for generating hash:
>>> import hashlib
>>> print(hashlib.md5("7848783748378478374837simple123".encode('utf-8')).hexdigest())
>>> 2576c3<some hash>e43c

Any ideas what i am doing wrong?   Thank you very much for any help.


Attached Files
.txt   passwords.txt (Size: 44 bytes / Downloads: 0)
Reply


Messages In This Thread
salt+password md5 - by m6rk - 08-13-2020, 11:46 PM
RE: salt+password md5 - by philsmd - 08-13-2020, 11:55 PM
RE: salt+password md5 - by m6rk - 08-14-2020, 01:05 AM