The attached patch (/nmap-exp/kris SVN r4346) makes -p- start with 0
instead of 1 when using -sO (IP proto scan).
Let's say we did 'nmap -sO -p-10 insecure.org' before. Nmap would scan
protocols 1-10. Now it will scan 0-10. It's been including 0 as it
should normally, unless a range starting with - was used.
I've tested it and I haven't had any problems, but please tell me if it
breaks anything. I'll commit to /nmap later if no problems are seen.
Thanks,
Kris Katterjohn
Index: nmap.cc
===================================================================
--- nmap.cc (revision 4345)
+++ nmap.cc (revision 4346)
@@ -1906,7 +1906,7 @@
continue;
}
if (*current_range == '-') {
- rangestart = 1;
+ rangestart = o.ipprotscan ? 0 : 1;
}
else if (isdigit((int) *current_range)) {
rangestart = strtol(current_range, &endptr, 10);
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Jan 11 2007