Nmap Development mailing list archives

[PATCH] Bugfix inside getpts()


From: doug () 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

Attachment: nmap-4.03-fix-getpts.patch
Description:



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

Current thread: