Nmap Development mailing list archives

Re: [NSE + NSELib] Netbios and SMB [stable!]


From: David Fifield <david () bamsoftware com>
Date: Mon, 6 Oct 2008 08:16:51 -0600

On Mon, Oct 06, 2008 at 10:33:19AM +0200, Sven Klemm wrote:
here is how i did it in lua. The key is already 8 byte with parity.

~  local key = string.char(0x3b,0x38,0x98,0x37,0x15,0x20,0xf7,0x5e)

~  local crypt = openssl.encrypt("des", key, nil, "Hallo du")
~  print( "DES", openssl.decrypt("des", key, nil, crypt ) )

I should probably add a utility function that turns a 7-byte string
into a valid DES key.

What happens if the parity check fails? Some kind of catchable error
("OpenSSL error")?

David Fifield

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: