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: 1)
Reply
#2
the format is:
Code:
hash:salt
see https://hashcat.net/wiki/example_hashes

so it's the other way around.


It's not allowed to post hashes here, see: https://hashcat.net/forum/announcement-2.html
Reply
#3
(08-13-2020, 11:55 PM)philsmd Wrote: the format is:
Code:
hash:salt
see https://hashcat.net/wiki/example_hashes

so it's the other way around.


It's not allowed to post hashes here, see: https://hashcat.net/forum/announcement-2.html


Thank you.
Reply