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:
edgeos



Nmap Development: Re: [Bug]? -iR <num_hosts> on windows XP generates duplicate targets

Re: [Bug]? -iR <num_hosts> on windows XP generates duplicate targets

From: Fyodor <fyodor_at_insecure.org>
Date: Wed, 23 Apr 2008 18:14:53 -0700

On Thu, Apr 24, 2008 at 01:15:36AM +0100, jah wrote:
>
> With nmap -n -sL -iR 500 I find there's an average (mean) of 143
> duplicate targets generated (std. deviation approx 5).

Wow, I can reproduce the same thing on Windows. I used this command
under cygwin to count the number of uniq IPs for a given -iR size:

nmap -n -sL -iR NNN | egrep '^Host ' | sort | uniq | wc

Wher 'NNN' is replaced with the number of hosts to try. Here are the
results:

100 -> 100
200 -> 200
300 -> 300
400 -> 348
500 -> 359
600 -> 352
700 -> 356
800 -> 430
900 -> 528
1000 -> 646

So these are about the same results as you saw. This is Windows XP
SP2 running on VMWare using our stock 4.60 binary. I tried the same
command on Linux and much more expected and proper numbers:

1000 -> 1000
10000 -> 10000
100000 -> 100000
500000 -> 499958

Something is broken or poorly implemented in either Windows' rand() or
the way Nmap is using it.

> I'd be very interested to know if anyone else can reproduce the issue
> and any pointers to where I might look next.

I'm not sure, but please let us know if you figure this out.

Cheers,
-F

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

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos