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] Bugfix inside getpts()

[PATCH] Bugfix inside getpts()

From: <doug_at_hcsw.org>
Date: Tue, 16 May 2006 13:28:26 -0700

Hi nmap-dev!

Attached is a small fix to nmap.cc's getpts() function to fix a bug
relating to port parsing. Sometime between 3.95 and 4.03 (I didn't spend
any serious time hunting it - I just happened to have a 3.95 tarball
around) this function was changed making this scan not work - it only did a
SYN scan, not a UDP:

# ./nmap -vvv -sSU -p0-65535 localhost

Starting Nmap 4.03 ( http://www.insecure.org/nmap/ ) at 2006-05-16 12:04 PDT
WARNING: UDP scan was requested, but no udp ports were specified. Skipping this scan type.

After applying this patch, this (completely arbitrary) command

./nmap -vvv -sSU -p1-1024,T:4000-6000,U:9000-9010 localhost

again prints these 2 correct lines:

Initiating SYN Stealth Scan against darkmatter (127.0.0.1) [3025 ports] at 12:19
Initiating UDP Scan against darkmatter (127.0.0.1) [1035 ports] at 12:19

Doug

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev

Received on May 16 2006
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos