RE: NMAP Switches, -sS, -sT, etc.



I'd start off with initial scans against a selection of the more common ports i.e. nmap -sS -p 21,22,23,53,80,443,135,137-139, 445 and 1433,1434. These scans will take less time to complete and allow you to start your pen test without needing to wait for a full set of scans against all 65K ports to finish. The full scans will need to be run at some point but they can be run in parallel as you work on the initial subset.

David.

"Tate Hansen" <tate@xxxxxxxxxxxxxxx>
No Phone Info Available
03/25/2006 06:52 AM

To
"'Doug Fox'" <dfox168@xxxxxxxxxxx>
cc
<pen-test@xxxxxxxxxxxxxxxxx>
Subject
RE: NMAP Switches, -sS, -sT, etc.

I like to run nmap in phases to balance the speed and accuracy. For
example, run only a SYN scan (-sS) for the 1st phase then follow up with
the
service detection, OS detection, etc., scan after you discover the list of
'live' devices and open ports. In my experience those extra options can
add
lots of time (especially when scanning large blocks, like a /16) and I
like
to obtain the open port list as soon as possible to feed others tools
(amap,
nessus, etc.).

I also always try to add options to account for current latency
conditions,
bandwidth availability, and the specs of the server running nmap. Things
like: min_hostgroup, min_parallelism, min-rtt-timeout, --max-retries.

An initial scan I may run with high latency (400ms rtt), lots of
bandwidth,
and a good server is:
nmap -vv -sS -P0 -p 1-65535 -n --min_hostgroup 100 --max_retries 3
--max_rtt_timeout 1250 --min_parallelism 100 -oA <output_file> <net_block>

For a follow up:
nmap -vv -p <open_port_list> -sT -A -P0 -n --min_hostgroup 100
--max_rtt_timeout 1250 --min_parallelism 100 -oA <output_file> -iL
liveIPList

Another observation: I frequently find additional open ports when
executing
multiple scans of the same blocks at different times. For whatever reason
(e.g. network hiccup, target load, server load) it helps to run repeated
scans if you want to improve/have greater confidence in your results.
Running a few SYN services scans in addition to your normal scans at
different times may reveal a few more open ports.

Tate Hansen
ClearNet Security

-----Original Message-----
From: Doug Fox [mailto:dfox168@xxxxxxxxxxx]
Sent: Thursday, March 23, 2006 8:07 AM
To: pen-test@xxxxxxxxxxxxxxxxx
Subject: NMAP Switches, -sS, -sT, etc.

If I may, I like to poll the list what are your favorite switches when
using

NMAP to conduct "intensive/comprehensive" security testing.

I have been using

NMAP -vv -A -sS -O -p1-65535 -P0 -oX target.xml www.xxx.yyy.zzz.

I find I got more information using -sS than -sT and requires short time.

Any suggestions/comments are appreciated.

Thanks,

DF

----------------------------------------------------------------------------
--
This List Sponsored by: Cenzic

Concerned about Web Application Security?
As attacks through web applications continue to rise, you need to
proactively
protect your applications from hackers. Cenzic has the most comprehensive
solutions to meet your application security penetration testing and
vulnerability management needs. You have an option to go with a managed
service (Cenzic ClickToSecure) or an enterprise software (Cenzic
Hailstorm).

Download FREE whitepaper on how a managed service can help you:
http://www.cenzic.com/forms/ec.php?pubid=10025
And, now for a limited time we can do a FREE audit for you to confirm your

results from other product. Contact us at request@xxxxxxxxxx
----------------------------------------------------------------------------
--


------------------------------------------------------------------------------
This List Sponsored by: Cenzic

Concerned about Web Application Security?
As attacks through web applications continue to rise, you need to
proactively
protect your applications from hackers. Cenzic has the most comprehensive
solutions to meet your application security penetration testing and
vulnerability management needs. You have an option to go with a managed
service (Cenzic ClickToSecure) or an enterprise software (Cenzic
Hailstorm).
Download FREE whitepaper on how a managed service can help you:
http://www.cenzic.com/forms/ec.php?pubid=10025
And, now for a limited time we can do a FREE audit for you to confirm your

results from other product. Contact us at request@xxxxxxxxxx
------------------------------------------------------------------------------


_________________________________________________________________
Learn English via Shopping Game, FREE! http://www.linguaphonenet.com/BannerTrack.asp?EMSCode=MSN06-03ETFJ-0211E


------------------------------------------------------------------------------
This List Sponsored by: Cenzic

Concerned about Web Application Security? As attacks through web applications continue to rise, you need to proactively protect your applications from hackers. Cenzic has the most comprehensive solutions to meet your application security penetration testing and vulnerability management needs. You have an option to go with a managed service (Cenzic ClickToSecure) or an enterprise software (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can help you: http://www.cenzic.com/forms/ec.php?pubid=10025
And, now for a limited time we can do a FREE audit for you to confirm your results from other product. Contact us at request@xxxxxxxxxx
------------------------------------------------------------------------------



Relevant Pages

  • Re: Man in the middle attack help
    ... vulnerability management needs. ... Download FREE whitepaper on how a managed service can help you: ...
    (Pen-Test)
  • Re: Man in the middle attack help
    ... vulnerability management needs. ... Download FREE whitepaper on how a managed service can help you: ...
    (Pen-Test)
  • RE: Vuln Scanning software choices
    ... Hackers are concentrating their efforts on attacking applications on ... vulnerability management needs. ... Download FREE whitepaper on how a managed service can help you: ...
    (Pen-Test)
  • Re: testing laptop based on bsd anyone
    ... Does anyone here use BSD as a base system for pen-testing from? ... vulnerability management needs. ... Download FREE whitepaper on how a managed service can help you: ...
    (Pen-Test)
  • RE: Legality of blue tooth hacking
    ... At a recent Cisco security product meeting, ... testing and vulnerability management needs. ... Download FREE whitepaper on how a managed service can help you: ...
    (Pen-Test)