Nmap Development mailing list archives
Re: Nmap 3.84ALPHA1: Call For Testers
From: Ron <iago () valhallalegends com>
Date: Mon, 29 Aug 2005 14:13:00 -0500
Works great, thanks :) doug () hcsw org wrote:
Hi Ron and nmap-dev,
I've found the source of the -sVU bug and I've attached a patch that fixes it. It turned out to be an embarassing
off-by-one bug and I'm grateful that it was caught before a more formal release was made.
I've attached a unified diff patch that you can apply to the BETA version like so:
doug@neutrino:~/nmap-3.84ALPHA1$ patch -p1 < /patch/to/nmap-3.84ALPHA1-udp-fix.patch
patching file service_scan.cc
doug@neutrino:~/nmap-3.84ALPHA1$
and recompiling.
Fyodor, I've also put the fix into CVS.
Thanks a lot for the bug report Ron!
Doug
------------------------------------------------------------------------
diff -urNb old.nmap.rev/service_scan.cc new.nmap.rev/service_scan.cc
--- old.nmap.rev/service_scan.cc 2005-08-25 11:59:09.354737080 -0700
+++ new.nmap.rev/service_scan.cc 2005-08-25 11:59:09.475718688 -0700
@@ -1169,7 +1169,7 @@
// scan protocols.
int AllProbes::isExcluded(unsigned short port, int proto) {
unsigned short *p=NULL;
- int count=-1;
+ int count=-1,i;
if (proto == IPPROTO_TCP) {
p = excludedports->tcp_ports;
@@ -1181,8 +1181,9 @@
fatal("Bad proto number (%d) specified in AllProbes::isExcluded", proto);
}
- for (;count >= 0;count--)
- if (p[count] == port) return 1;
+ for (i=0; i<count; i++)
+ if (p[i] == port)
+ return 1;
return 0;
}
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev
Current thread:
- Re: Nmap 3.84ALPHA1: Call For Testers, (continued)
- Re: Nmap 3.84ALPHA1: Call For Testers Greg Darke (Aug 11)
- Re: Nmap 3.84ALPHA1: Call For Testers Simon Spencer (Aug 11)
- Re: Nmap 3.84ALPHA1: Call For Testers Okan Demirmen (Aug 16)
- Re: Nmap 3.84ALPHA1: Call For Testers David Warde-Farley (Aug 18)
- Re: Nmap 3.84ALPHA1: Call For Testers Daniel Harrison (Aug 19)
- Re: Nmap 3.84ALPHA1: Call For Testers Ron (Aug 25)
- Re: Nmap 3.84ALPHA1: Call For Testers Aaron J. Bedra (Aug 25)
- Re: Nmap 3.84ALPHA1: Call For Testers Ron (Aug 25)
- Re: Nmap 3.84ALPHA1: Call For Testers Okan Demirmen (Aug 25)
- Message not available
- Message not available
- Re: Nmap 3.84ALPHA1: Call For Testers doug (Aug 25)
- Re: Nmap 3.84ALPHA1: Call For Testers Ron (Aug 29)
- Re: Nmap 3.84ALPHA1: Call For Testers Aaron J. Bedra (Aug 25)
- Message not available
- Message not available
- Re: Nmap 3.84ALPHA1: Call For Testers doug (Aug 25)
- Re: Nmap 3.84ALPHA1: Call For Testers Fyodor (Aug 25)
- Re: Nmap 3.84ALPHA1: Call For Testers David Warde-Farley (Aug 25)
- Re: Nmap 3.84ALPHA1: Call For Testers Emmanuel Goldstein (Aug 12)
- Re: Nmap 3.84ALPHA1: Call For Testers MadHat (Aug 12)
- Re: Nmap 3.84ALPHA1: Call For Testers Emmanuel Goldstein (Aug 13)
