Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:




nmap-dev logo 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


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]