Nmap Development mailing list archives

Re: Invalid character in host specification (NOT).


From: Martin Mačok <martin.macok () underground cz>
Date: Wed, 23 Mar 2005 23:27:53 +0100

On Wed, Mar 23, 2005 at 01:52:13PM -0800, Alen Williams wrote:

I have files of IP's that I need to scan that have much more than
4098 hosts, same for --excludefile as well.

Is there some kind of tweak that I could do to up this limit? I need
to roughly double it.

Try this patch:

--- nmap.h.orig 2005-03-23 23:25:04.000000000 +0100
+++ nmap.h      2005-03-23 23:25:18.000000000 +0100
@@ -339,7 +339,7 @@
 /* Number of hosts we pre-ping and then scan.  We do a lot more if
    randomize_hosts is set.  Every one you add to this leads to ~1K of
    extra always-resident memory in nmap */
-#define PING_GROUP_SZ 1024
+#define PING_GROUP_SZ 2048
 
 /* DO NOT change stuff after this point */
 #define UC(b)   (((int)b)&0xff)


Cheers,

Martin Mačok
ICT Security Consultant

---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to 
nmap-dev-help () insecure org . List archive: http://seclists.org



Current thread: