Python SMB Password Hash Generator module
2002-10-27 Barry Pederson <[email protected]>
-
Unpack the distribution.
tar xzvf smbpasswd-1.0.2.tgz
-
Compile and install.
cd smbpasswd-1.0.2 python setup.py install
In Python:
import smbpasswd
passwd = 'mypassword'
print 'LANMAN hash is', smbpasswd.lmhash(passwd)
print 'NT hash is', smbpasswd.nthash(passwd)
print 'both hashes at once = %s:%s' % smbpasswd.hash(passwd)
Enjoy