Posts: 803
Threads: 135
Joined: Feb 2011
02-26-2013, 08:02 PM
(This post was last modified: 02-26-2013, 08:02 PM by Mem5.)
Hi,
Is it possible to recover hashes created with :
Code:
$hash = sha1($user.'_'.strtoupper($pass));
(I know $user)
Thank you.
Posts: 601
Threads: 18
Joined: Apr 2010
02-26-2013, 08:06 PM
(This post was last modified: 02-26-2013, 08:07 PM by Rolf.)
Yeah, use -m 120, make the username_ the salt and mutate all passwords to be in uppercase.
Easy!
Posts: 2,936
Threads: 12
Joined: May 2012
02-26-2013, 08:07 PM
(This post was last modified: 02-26-2013, 08:09 PM by epixoip.)
just add an underscore to the end of each salt and use the 'u' rule.
Edit: aww, Rolf beat me to it.
Posts: 803
Threads: 135
Joined: Feb 2011
Oh yes, thank you.
For my curiosity, if the salt ends with ':', it's the same format ?
Posts: 5,185
Threads: 230
Joined: Apr 2010
you mean a username that ends with a : ?
Posts: 2,936
Threads: 12
Joined: May 2012
i do not know if the string parser will be confused by the second : or not, too lazy to test, but if it is, you could always just use a hexsalt.
Posts: 414
Threads: 14
Joined: Mar 2012
It will not. You can have as many :'s as you want in a salt as long as you use the right -m.
Posts: 803
Threads: 135
Joined: Feb 2011
I mean the username is "MyUsername:"
I create a hashfile :
Code:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:MyUsername:
Should it work with -m 120 ?
Posts: 601
Threads: 18
Joined: Apr 2010
02-28-2013, 10:10 AM
(This post was last modified: 02-28-2013, 10:12 AM by Rolf.)
Lets say a username is "Jorgen" and the password is "narepanne" (the real password can be Narepanne, NarePanne and other case mutations, but it doesn't matter since the algo uppercases all the passwords).
This gives us the following hash: dc988c67372835f1156659e69b94d86e6c735e00.
To use this with any cats, you select -m 120 and put the hash in the following format in the hashfile:
dc988c67372835f1156659e69b94d86e6c735e00:Jorgen_
And, of course, use the rule u, or you'll be wasting time.
Now you know how to modify it to any example.
Also, if any cats find a colon in a salt, they treat it as a character, not separator, unless the hash has a username after the salt.
Posts: 803
Threads: 135
Joined: Feb 2011
Nice, thank you. It worked well