1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 12:59:02 +00:00
david 59cc2fe72a Avoid eating 'T' 'U' 'S' 'P' not followed by ':' in getpts.
On reading 'T', 'U', 'S', or 'P', getpts_aux would unconditionally
consume the character before checking to see whether it was followed by
a ':'. You could insert 'T', 'U', 'S', or 'P' in several places and it
would just be ignored, which is different treatment than other letters
got.

Behavior before:
	nmap -p 9
	# scans port 9

	nmap -p discard
	# scans port 9

	nmap -p Tdiscard
	# scans port 9

	nmap -p T:Tdiscard
	# scans port 9

	nmap -p Tdi*ard
	# scans port 9

	nmap -p Xdiscard
	# Error #485: Your port specifications are illegal.  Example of proper form: "-100,200-1024,T:3000-4000,U:60000-"

Behavior after:
	nmap -p 9
	# scans port 9

	nmap -p discard
	# scans port 9

	nmap -p Tdiscard
	# Error #485: Your port specifications are illegal.  Example of proper form: "-100,200-1024,T:3000-4000,U:60000-"

	nmap -p T:Tdiscard
	# Error #485: Your port specifications are illegal.  Example of proper form: "-100,200-1024,T:3000-4000,U:60000-"

	nmap -p Tdi*ard
	# Error #485: Your port specifications are illegal.  Example of proper form: "-100,200-1024,T:3000-4000,U:60000-"

	nmap -p Xdiscard
	# Error #485: Your port specifications are illegal.  Example of proper form: "-100,200-1024,T:3000-4000,U:60000-"
2016-09-18 20:42:56 +00:00
2016-07-02 17:02:27 +00:00
2016-04-04 15:38:44 +00:00
2016-02-11 05:52:36 +00:00
2016-06-24 01:31:25 +00:00
2014-11-28 21:31:40 +00:00
2014-08-18 03:12:00 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-06-17 09:07:48 +00:00
2016-04-04 15:38:44 +00:00
2015-11-05 20:41:05 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2015-06-01 04:38:57 +00:00
2016-07-02 17:02:27 +00:00
2016-07-02 17:02:27 +00:00
2016-07-02 17:02:27 +00:00
2014-06-26 20:12:54 +00:00
2016-07-02 17:02:27 +00:00
2016-07-02 17:02:27 +00:00
2016-07-02 17:02:27 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-07-29 16:23:59 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00
2016-04-04 15:38:44 +00:00

Here is some documentation for Nmap, but these files are much less
comprehensive than what you'll find at the actual Nmap documentation
site ( https://nmap.org ).
Languages
C 37.8%
Lua 28.1%
C++ 16.7%
Shell 5.8%
Python 4.2%
Other 7.2%