Useful Nmap Command Lines
The syntax for using Nmap is as follows:
nmap [ <Scan Type> ...] [ <Options> ] { <target specification> }
OS Detection
-O: Enables OS detection. Output scan is in normal, XML, s|<rIpt kIddi3, and Grepable formats,
n
respectively, to the given filename.
OUTPUT:
-oN/-oX/-oS/-oG <file>
-R: Specifies DNS resolution for all targets. This option instructs Nmap to always perform reverse DNS
n
resolution on the target IP addresses. Reverse DNS is typically performed only against responsive
(online) hosts.
Examples
nmap.exe –O -R -oX c:\nmapoutput.xml 10.30.200.45
nmap -O –R -oX c:\myOutput2.xml 10.*0.0.*
Reference
For further information about the Nmap commands, see the Nmap Reference Guide at:
http://nmap.org/book/man-briefoptions.html
VMware, Inc.
A
23