|
From: Peter.Kramer on 9 Aug 2006 05:20 Hello, I want to write a perl module that encrypts a clear password to a windows hash. I didnt find any algorithm that builds the hash expect copypwd.exe which works, but is an external program that does not run as scheduled task. "cleartextpassword " -> "52616e646f6d4956dc110786f80987daa99d164016ba7d72b24eb2a2931e0ff7" Thanks
From: Reinhard Pagitsch on 9 Aug 2006 11:24 Hello, Peter.Kramer wrote: > Hello, > I want to write a perl module that encrypts a clear password to a windows > hash. > I didnt find any algorithm that builds the hash expect copypwd.exe which > works, but is an external program that does not run as scheduled task. > > "cleartextpassword " -> > "52616e646f6d4956dc110786f80987daa99d164016ba7d72b24eb2a2931e0ff7" Copypwd uses the functions from the "Windows Management API" (MS Platform SDK) and from the samsrv.dll. First Dump the passwords (encrypted not in clear text) from a domain to a text file and than you can use this file to import it on an other domain. I do not belive that MS made the algorithm available. But that can be asked in a MS news group, I guess. regards, Reinhard
From: Ben Morrow on 9 Aug 2006 17:45 Quoth rpirpag(a)aon.at: > Hello, > > Peter.Kramer wrote: > > Hello, > > I want to write a perl module that encrypts a clear password to a windows > > hash. > > I didnt find any algorithm that builds the hash expect copypwd.exe which > > works, but is an external program that does not run as scheduled task. > > > > "cleartextpassword " -> > > "52616e646f6d4956dc110786f80987daa99d164016ba7d72b24eb2a2931e0ff7" > > Copypwd uses the functions from the "Windows Management API" (MS > Platform SDK) and from the samsrv.dll. ....in which case if you *really* want to you can use Win32::API or XS to get at them from Perl. Ben -- Although few may originate a policy, we are all able to judge it. Pericles of Athens, c.430 B.C. benmorrow(a)tiscali.co.uk
From: Reinhard Pagitsch on 10 Aug 2006 03:07 Ben Morrow wrote: > Quoth rpirpag(a)aon.at: >> Hello, >> >> Peter.Kramer wrote: >> > Hello, >> > I want to write a perl module that encrypts a clear password to a windows >> > hash. >> > I didnt find any algorithm that builds the hash expect copypwd.exe which >> > works, but is an external program that does not run as scheduled task. >> > >> > "cleartextpassword " -> >> > "52616e646f6d4956dc110786f80987daa99d164016ba7d72b24eb2a2931e0ff7" >> >> Copypwd uses the functions from the "Windows Management API" (MS >> Platform SDK) and from the samsrv.dll. > > ...in which case if you *really* want to you can use Win32::API or XS to > get at them from Perl. Not really, the functions are only to get the password hashes from existing user accounts of a domain and not to pass them a clear text password and get the encrypted hash. But maybe there are some functions todo so, but till now I did not find them. regards, Reinhard
From: Peter J. Holzer on 13 Aug 2006 19:06 On Wed, 09 Aug 2006 11:20:08 +0200, Peter.Kramer wrote: > I want to write a perl module that encrypts a clear password to a windows > hash. > I didnt find any algorithm that builds the hash expect copypwd.exe which > works, but is an external program that does not run as scheduled task. > > "cleartextpassword " -> > "52616e646f6d4956dc110786f80987daa99d164016ba7d72b24eb2a2931e0ff7" Take a look at Crypt::SmbHash. hp -- _ | Peter J. Holzer | > Wieso sollte man etwas erfinden was nicht |_|_) | Sysadmin WSR | > ist? | | | hjp(a)hjp.at | Was sonst wäre der Sinn des Erfindens? __/ | http://www.hjp.at/ | -- P. Einstein u. V. Gringmuth in desd
|
Pages: 1 Prev: Problem with DateTime Next: Publicly flog David Filmer for writing multi-post flagging'bot |