[linux-cifs-client] NT and LM hash

Christopher R. Hertel crh at ubiqx.mn.org
Tue Nov 6 16:09:43 GMT 2007


I have some example code sitting 'round.  If I get a chance today I'll post it.

Chris -)-----

Sweekar Pinto wrote:
> Hi,
> I was looking for a way to get the NT and LM hash for a given cleartext.
> I believe nt_lm_owf_gen() could do this.
> In that case somehow managing to call nt_lm_owf_gen() like:
> uchar pwd_c[16]="test";
> uchar nt_p16_c[16];
> uchar lm_p16_c[16];
> nt_lm_owf_gen(pwd_c,nt_p16_c,lm_p16_c);
> 
> should so the trick. But I get some junk value in lm_p16_c and lm_p16_c instead.
> Am I doing this completely wrong? Any pointers.
> Thanks,
> Sweekar
> _______________________________________________
> linux-cifs-client mailing list
> linux-cifs-client at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux-cifs-client

-- 
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org


More information about the linux-cifs-client mailing list