Nmap Development mailing list archives

Re: nse crypto


From: Toni Ruottu <toni.ruottu () iki fi>
Date: Sun, 13 Mar 2011 05:38:30 +0200

ipOps.ip_to_bin does not work because it converts the address to a
string of ascii characters 0 and 1, while I need to convert the
address to an actual binary string. I wonder, if I could use bin
library to convert a string of 0 and 1 to a binary string.

On Sun, Mar 13, 2011 at 4:09 AM, David Fifield <david () bamsoftware com> wrote:
On Sat, Mar 12, 2011 at 05:56:30PM +0200, Toni Ruottu wrote:
Here is a new version that uses the brute library. I did not notice
any speed ups, but using the library seems a good idea anyway, as it
makes this work similarly to other scripts.

Awesome, good work. I've committed it. By the way, Toni, the style of
this script is looking really good.

You might be able to replace the ip6tobin function with the standard
function ipOps.ip_to_bin.

I don't understand why switching to the brute library doesn't speed it
up. Using multiple threads should allow costly operations like network
roundtrips to happen in parallel. At first I thought it might be the key
derivation function, involving 1,000 rounds of SHA-256, but it hardly
affects the CPU in my quick test.
take close to a second.

David Fifield

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


Current thread: