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: [PATCH] Start with proto 0 when doing -sO -p-

[PATCH] Start with proto 0 when doing -sO -p-

From: Kris Katterjohn <katterjohn_at_gmail.com>
Date: Thu, 11 Jan 2007 21:09:22 -0600

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

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