Please note, this is a STATIC archive of website hashcat.net from October 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.

hashcat Forum

Full Version: how can I set the mask to a md5 hash result of itself?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
md5(abcd[salt])=0efa706032b161be6802d5ae093a97cd
what we know is the [salt] consists of 32 characters ( 0123456789abcdef ), seems like a md5 hash.
now I want crack this salt,
if I try to do this:
Code:
hashcat64 md5_hash.txt -m 0 -a 3 abcd?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h?h
I think it's impossible.


Sometime the [salt] was created by md5(a simple str),
in fact, in this case, the [salt] is md5(simple) = 8dbdda48fb8748d6746f1965824e966a


So, my question is, how can I set the mask to a md5 hash result of itself?
suck as...
hashcat64 md5_hash.txt -m 0 -a 3 abcd[md5(?s?s?s?s?s?s)]
hex encoded or binary? not that it really matters because the search space is too large anyway.
I mean, if the 32 bytes salt is just a md5 hash of some simple text, and I search it as a 32 bytes completely random value,
that's too stupid.

So if I already knew the salt is a md5 hash of some short text, can I figure out the short text?
Basically your salt is the "password" you are looking for. There should be a corresponding hash mode.
I got it, but another problem.
In my practical case, "Salt-length exception"
... why there is a limit to salt string.. I don't get it.

My salt length is 65..
You are using the wrong hash mode. You need to use this one:
-m 3710 = md5($salt.md5($pass))

(Note: if you know the original password and are looking for the salt, you need to switch the role of these two and therefore the salt becomes your password which you are trying to find out and the original pass is known and therefore could be seen as your salt)

See https://hashcat.net/wiki/doku.php?id=example_hashes


The hash format is like this:
Code:
hash:salt

in your case it is:
Code:
hash:abcd

and your password candidate list should contain the correct password whoes MD5 digest is 8dbxxxx8fb8748dxxxxf1965xxxxe966a (i.e. in this case "simple", without quotes)