Nmap Development mailing list archives

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


From: Sven Klemm <sven () c3d2 de>
Date: Tue, 07 Oct 2008 00:51:50 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ron wrote:
| David Fifield wrote:
|> On Mon, Oct 06, 2008 at 10:21:39PM +0200, Sven Klemm wrote:
|>
|> That's interesting that OpenSSL ignores the parity bits. I don't know
|> exactly what scripts will need, but it seems that at least a
function to
|> convert a 56-bit byte string to a 64-bit key with correct parity would
|> be required. Is that what you needed for your script, Ron?
|>
|> David Fifield
|
| Yep, that's correct. I just got it working doing the padding manually,
| so all I need is a function to do it automatically.
|
| I also ran into another question, but I think I'll start a new thread
| for it.

I just added openssl.DES_string_to_key( string ) which accepts a 7
byte string and turns it into a 8 byte key with proper parity set.

Cheers,
Sven

- --
Sven Klemm
http://cthulhu.c3d2.de/~sven/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjqloYACgkQevlgTHEIT4aKJQCfZC1WQqUL9JoOOBWJyAQhTh0V
Wy8AnAo3C6/4qvI03AKDUGvZSQfTgkTk
=Q8GW
-----END PGP SIGNATURE-----

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


Current thread: