Python crypt and ubuntu shadow password file

robsbots

New Member
Joined
Jul 14, 2024
Messages
1
Reaction score
0
Credits
16
Hey all.

I'm playing with a bit of python. I'm trying to hash a string and match it against a string in the shadow password file. I have figured out which hashing system is used, but I have no idea how to get the salt value used when the password was originally hashed by the system. I know the password. I just want to make sure my python script returns the same string for the password. Once this is attained I can set the generator code loose and see if I can brute force my password :) ( I'm sure I could find a fantastic tool in Burp suit for this, but it's more fun to build it your self )

Failing this I could make a password protected zip file and crack that, but this is more fun.
Also, the crypt library is going. Is there a standard replacement ?

Thanks.

Rob.
 



Top