[Samba] NTLM hash

Andrew Bartlett abartlet at samba.org
Tue Feb 8 07:27:13 GMT 2005


On Mon, 2005-02-07 at 17:31 -0800, David Busby wrote:
> I'm looking at the NTLM hash, I need to make my own.
> I was going to look at somehow using libsmb or something but don't 
> really know how to.  Can I do this in perl?  I can make Unicode scalars 
> and send those to md4_hex() to get the output, but I cannot get 
> something to match what shows up in the /etc/samba/private/smbpasswd 
> file.  Ideas?  Currently I try this:

The password is in UCS2-LE before the MD4, but it might be easiest to
use the Crypt::SmbHash perl module.  

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20050208/92420202/attachment.bin


More information about the samba mailing list