Nmap Development mailing list archives
Port specification feature request: +p
From: Hank Leininger <hlein () korelogic com>
Date: Mon, 19 Nov 2012 19:56:28 -0500
Often I want to scan the default list of ports, plus a handful of specific ones. I don't know a clean way to do this; currently I either: - manually specify all the ports I want to scan (0-1024 is easy, but the others? meh.) - hack my /usr/share/nmap/nmap-services to add the ports in question (forget to propagate to other boxes, lose after the next upgrade, etc) - run one nmap scan with default ports selected, and a second scan for the additional ones that I care about - write an ugly one-liner to extract ports manually from nmap-services, and stir in the ones I want (and lose the list & the one-liner by the next time this comes up) - scan all the ports! (because I would probably end up doing so later in the engagement anyway, but means I wait longer for initial results) Is there a better way? Assuming not, how about an enhancement to the port-specification options, to allow you to either do: nmap +p 56565 or nmap -p +56565 Either of which would mean "Add the specified port(s) to the list nmap would otherwise use" (the default list, if nothing else is specified, or the Fast list if -F was specified, etc). Is there a)interest from others in this feature, b)no objection from nmap core devs to such a thing, c)interest/bandwidth by an existing nmap hacker to add such a thing? If a) and b) are true and c) is false, I will see what I can do but make no promises ;) Thanks, -- Hank Leininger <hlein () korelogic com> D24D 2C2A F3AC B9AE CD03 B506 2D57 32E1 686B 6DB3
Attachment:
signature.asc
Description: Digital signature
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Port specification feature request: +p Hank Leininger (Nov 20)
- Re: Port specification feature request: +p David Fifield (Nov 20)
- Re: Port specification feature request: +p jah (Nov 20)
- Re: Port specification feature request: +p Daniel Miller (Nov 20)
- <Possible follow-ups>
- Fwd: Re: Port specification feature request: +p jah (Nov 21)
- Re: Port specification feature request: +p David Fifield (Nov 20)