<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Nmap%3A_top_30_perintah_nmap</id>
	<title>Nmap: top 30 perintah nmap - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Nmap%3A_top_30_perintah_nmap"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Nmap:_top_30_perintah_nmap&amp;action=history"/>
	<updated>2026-04-20T05:10:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Nmap:_top_30_perintah_nmap&amp;diff=45599&amp;oldid=prev</id>
		<title>Onnowpurbo at 02:33, 11 February 2016</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Nmap:_top_30_perintah_nmap&amp;diff=45599&amp;oldid=prev"/>
		<updated>2016-02-11T02:33:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:33, 11 February 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Top 30 Nmap Command Examples For Sys/Network Admins&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Top 30 Nmap Command Examples For Sys/Network Admins&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;by NIXCRAFT on NOVEMBER 26, 2012 · 7 COMMENTS· LAST UPDATED NOVEMBER 29, 2012&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;in COMMAND LINE HACKS, HOWTO, NETWORKING, SECURITY&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Nmap is short for Network Mapper. It is an open source security tool for network exploration, security scanning and auditing. However, nmap command comes with lots of options that can make the utility more robust and difficult to follow for new users.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Nmap is short for Network Mapper. It is an open source security tool for network exploration, security scanning and auditing. However, nmap command comes with lots of options that can make the utility more robust and difficult to follow for new users.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Nmap:_top_30_perintah_nmap&amp;diff=45572&amp;oldid=prev</id>
		<title>Onnowpurbo at 22:35, 10 February 2016</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Nmap:_top_30_perintah_nmap&amp;diff=45572&amp;oldid=prev"/>
		<updated>2016-02-10T22:35:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://lms.onnocenter.or.id/wiki/index.php?title=Nmap:_top_30_perintah_nmap&amp;amp;diff=45572&amp;amp;oldid=34952&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Nmap:_top_30_perintah_nmap&amp;diff=34952&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: Top 30 Nmap Command Examples For Sys/Network Admins by NIXCRAFT on NOVEMBER 26, 2012 · 7 COMMENTS· LAST UPDATED NOVEMBER 29, 2012 in COMMAND LINE HACKS, HOWTO, NETWORKING, SECURITY Nmap ...</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Nmap:_top_30_perintah_nmap&amp;diff=34952&amp;oldid=prev"/>
		<updated>2012-12-05T05:42:12Z</updated>

		<summary type="html">&lt;p&gt;New page: Top 30 Nmap Command Examples For Sys/Network Admins by NIXCRAFT on NOVEMBER 26, 2012 · 7 COMMENTS· LAST UPDATED NOVEMBER 29, 2012 in COMMAND LINE HACKS, HOWTO, NETWORKING, SECURITY Nmap ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Top 30 Nmap Command Examples For Sys/Network Admins&lt;br /&gt;
by NIXCRAFT on NOVEMBER 26, 2012 · 7 COMMENTS· LAST UPDATED NOVEMBER 29, 2012&lt;br /&gt;
in COMMAND LINE HACKS, HOWTO, NETWORKING, SECURITY&lt;br /&gt;
Nmap is short for Network Mapper. It is an open source security tool for network exploration, security scanning and auditing. However, nmap command comes with lots of options that can make the utility more robust and difficult to follow for new users.&lt;br /&gt;
&lt;br /&gt;
The purpose of this post is to introduce a user to the nmap command line tool to scan a host and/or network, so to find out the possible vulnerable points in the hosts. You will also learn how to use Nmap for offensive and defensive purposes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
nmap in action&lt;br /&gt;
More about nmap&lt;br /&gt;
&lt;br /&gt;
From the man page:&lt;br /&gt;
&lt;br /&gt;
Nmap (&amp;quot;Network Mapper&amp;quot;) is an open source tool for network exploration and security auditing. It was designed to rapidly scan large networks, although it works fine against single hosts. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. While Nmap is commonly used for security audits, many systems and network administrators find it useful for routine tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime.&lt;br /&gt;
&lt;br /&gt;
It was originally written by Gordon Lyon and it can answer the following questions easily:&lt;br /&gt;
&lt;br /&gt;
What computers did you find running on the local network?&lt;br /&gt;
What IP addresses did you find running on the local network?&lt;br /&gt;
What is the operating system of your target machine?&lt;br /&gt;
Find out what ports are open on the machine that you just scanned?&lt;br /&gt;
Find out if the system is infected with malware or virus.&lt;br /&gt;
Search for unauthorized servers or network service on your network.&lt;br /&gt;
Find and remove computers which don&amp;#039;t meet the organization&amp;#039;s minimum level of security.&lt;br /&gt;
Sample setup (LAB)&lt;br /&gt;
&lt;br /&gt;
Port scanning may be illegal in some jurisdictions. So setup a lab as follows:&lt;br /&gt;
&lt;br /&gt;
                              +---------+&lt;br /&gt;
        +---------+           | Network |         +--------+&lt;br /&gt;
        | server1 |-----------+ swtich  +---------|server2 |&lt;br /&gt;
        +---------+           | (sw0)   |         +--------+&lt;br /&gt;
                              +----+----+&lt;br /&gt;
                                   |&lt;br /&gt;
                                   |&lt;br /&gt;
                         +---------+----------+&lt;br /&gt;
                         | wks01 Linux/OSX    |&lt;br /&gt;
                         +--------------------+&lt;br /&gt;
Where,&lt;br /&gt;
&lt;br /&gt;
wks01 is your computer either running Linux/OS X or Unix like operating system. It is used for scanning your local network. The nmap command must be installed on this computer.&lt;br /&gt;
server1 can be powered by Linux / Unix / MS-Windows operating systems. This is an unpatched server. Feel free to install a few services such as a web-server, file server and so on.&lt;br /&gt;
server2 can be powered by Linux / Unix / MS-Windows operating systems. This is a fully patched server with firewall. Again, feel free to install few services such as a web-server, file server and so on.&lt;br /&gt;
All three systems are connected via switch.&lt;br /&gt;
How do I install nmap?&lt;br /&gt;
&lt;br /&gt;
See:&lt;br /&gt;
&lt;br /&gt;
Debian / Ubuntu Linux: Install nmap Software For Scanning Network&lt;br /&gt;
CentOS / RHEL: Install nmap Network Security Scanner&lt;br /&gt;
OpenBSD: Install nmap Network Security Scanner&lt;br /&gt;
#1: Scan a single host or an IP address (IPv4)&lt;br /&gt;
&lt;br /&gt;
### Scan a single ip address ###&lt;br /&gt;
nmap 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
## Scan a host name ###&lt;br /&gt;
nmap server1.cyberciti.biz&lt;br /&gt;
 &lt;br /&gt;
## Scan a host name with more info###&lt;br /&gt;
nmap -v server1.cyberciti.biz&lt;br /&gt;
 &lt;br /&gt;
Sample outputs:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fig.01: nmap output&lt;br /&gt;
#2: Scan multiple IP address or subnet (IPv4)&lt;br /&gt;
&lt;br /&gt;
nmap 192.168.1.1 192.168.1.2 192.168.1.3&lt;br /&gt;
## works with same subnet i.e. 192.168.1.0/24&lt;br /&gt;
nmap 192.168.1.1,2,3&lt;br /&gt;
You can scan a range of IP address too:&lt;br /&gt;
&lt;br /&gt;
nmap 192.168.1.1-20&lt;br /&gt;
You can scan a range of IP address using a wildcard:&lt;br /&gt;
&lt;br /&gt;
nmap 192.168.1.*&lt;br /&gt;
Finally, you scan an entire subnet:&lt;br /&gt;
&lt;br /&gt;
nmap 192.168.1.0/24&lt;br /&gt;
#3: Read list of hosts/networks from a file (IPv4)&lt;br /&gt;
&lt;br /&gt;
The -iL option allows you to read the list of target systems using a text file. This is useful to scan a large number of hosts/networks. Create a text file as follows:&lt;br /&gt;
cat &amp;gt; /tmp/test.txt&lt;br /&gt;
&lt;br /&gt;
Sample outputs:&lt;br /&gt;
&lt;br /&gt;
server1.cyberciti.biz&lt;br /&gt;
192.168.1.0/24&lt;br /&gt;
192.168.1.1/24&lt;br /&gt;
10.1.2.3&lt;br /&gt;
localhost&lt;br /&gt;
The syntax is:&lt;br /&gt;
&lt;br /&gt;
nmap -iL /tmp/test.txt&lt;br /&gt;
#4: Excluding hosts/networks (IPv4)&lt;br /&gt;
&lt;br /&gt;
When scanning a large number of hosts/networks you can exclude hosts from a scan:&lt;br /&gt;
&lt;br /&gt;
nmap 192.168.1.0/24 --exclude 192.168.1.5&lt;br /&gt;
nmap 192.168.1.0/24 --exclude 192.168.1.5,192.168.1.254&lt;br /&gt;
OR exclude list from a file called /tmp/exclude.txt&lt;br /&gt;
&lt;br /&gt;
nmap -iL /tmp/scanlist.txt --excludefile /tmp/exclude.txt&lt;br /&gt;
#5: Turn on OS and version detection scanning script (IPv4)&lt;br /&gt;
&lt;br /&gt;
nmap -A 192.168.1.254&lt;br /&gt;
nmap -v -A 192.168.1.1&lt;br /&gt;
nmap -A -iL /tmp/scanlist.txt &lt;br /&gt;
#6: Find out if a host/network is protected by a firewall&lt;br /&gt;
&lt;br /&gt;
nmap -sA 192.168.1.254&lt;br /&gt;
nmap -sA server1.cyberciti.biz&lt;br /&gt;
#7: Scan a host when protected by the firewall&lt;br /&gt;
&lt;br /&gt;
nmap -PN 192.168.1.1&lt;br /&gt;
nmap -PN server1.cyberciti.biz&lt;br /&gt;
#8: Scan an IPv6 host/address&lt;br /&gt;
&lt;br /&gt;
The -6 option enable IPv6 scanning. The syntax is:&lt;br /&gt;
&lt;br /&gt;
nmap -6 IPv6-Address-Here&lt;br /&gt;
nmap -6 server1.cyberciti.biz&lt;br /&gt;
nmap -6 2607:f0d0:1002:51::4&lt;br /&gt;
nmap -v A -6 2607:f0d0:1002:51::4&lt;br /&gt;
#9: Scan a network and find out which servers and devices are up and running&lt;br /&gt;
&lt;br /&gt;
This is known as host discovery or ping scan:&lt;br /&gt;
&lt;br /&gt;
nmap -sP 192.168.1.0/24&lt;br /&gt;
Sample outputs:&lt;br /&gt;
&lt;br /&gt;
Host 192.168.1.1 is up (0.00035s latency).&lt;br /&gt;
MAC Address: BC:AE:C5:C3:16:93 (Unknown)&lt;br /&gt;
Host 192.168.1.2 is up (0.0038s latency).&lt;br /&gt;
MAC Address: 74:44:01:40:57:FB (Unknown)&lt;br /&gt;
Host 192.168.1.5 is up.&lt;br /&gt;
Host nas03 (192.168.1.12) is up (0.0091s latency).&lt;br /&gt;
MAC Address: 00:11:32:11:15:FC (Synology Incorporated)&lt;br /&gt;
Nmap done: 256 IP addresses (4 hosts up) scanned in 2.80 second&lt;br /&gt;
#10: How do I perform a fast scan?&lt;br /&gt;
&lt;br /&gt;
nmap -F 192.168.1.1&lt;br /&gt;
#11: Display the reason a port is in a particular state&lt;br /&gt;
&lt;br /&gt;
nmap --reason 192.168.1.1&lt;br /&gt;
nmap --reason server1.cyberciti.biz&lt;br /&gt;
#12: Only show open (or possibly open) ports&lt;br /&gt;
&lt;br /&gt;
nmap --open 192.168.1.1&lt;br /&gt;
nmap --open server1.cyberciti.biz&lt;br /&gt;
#13: Show all packets sent and received&lt;br /&gt;
&lt;br /&gt;
nmap --packet-trace 192.168.1.1&lt;br /&gt;
nmap --packet-trace server1.cyberciti.biz&lt;br /&gt;
14#: Show host interfaces and routes&lt;br /&gt;
&lt;br /&gt;
This is useful for debugging (ip command or route command or netstat command like output using nmap)&lt;br /&gt;
&lt;br /&gt;
nmap --iflist&lt;br /&gt;
Sample outputs:&lt;br /&gt;
&lt;br /&gt;
Starting Nmap 5.00 ( http://nmap.org ) at 2012-11-27 02:01 IST&lt;br /&gt;
************************INTERFACES************************&lt;br /&gt;
DEV    (SHORT)  IP/MASK          TYPE        UP MAC&lt;br /&gt;
lo     (lo)     127.0.0.1/8      loopback    up&lt;br /&gt;
eth0   (eth0)   192.168.1.5/24   ethernet    up B8:AC:6F:65:31:E5&lt;br /&gt;
vmnet1 (vmnet1) 192.168.121.1/24 ethernet    up 00:50:56:C0:00:01&lt;br /&gt;
vmnet8 (vmnet8) 192.168.179.1/24 ethernet    up 00:50:56:C0:00:08&lt;br /&gt;
ppp0   (ppp0)   10.1.19.69/32    point2point up&lt;br /&gt;
 &lt;br /&gt;
**************************ROUTES**************************&lt;br /&gt;
DST/MASK         DEV    GATEWAY&lt;br /&gt;
10.0.31.178/32   ppp0&lt;br /&gt;
209.133.67.35/32 eth0   192.168.1.2&lt;br /&gt;
192.168.1.0/0    eth0&lt;br /&gt;
192.168.121.0/0  vmnet1&lt;br /&gt;
192.168.179.0/0  vmnet8&lt;br /&gt;
169.254.0.0/0    eth0&lt;br /&gt;
10.0.0.0/0       ppp0&lt;br /&gt;
0.0.0.0/0        eth0   192.168.1.2&lt;br /&gt;
 &lt;br /&gt;
#15: How do I scan specific ports?&lt;br /&gt;
&lt;br /&gt;
map -p [port] hostName&lt;br /&gt;
## Scan port 80&lt;br /&gt;
nmap -p 80 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
## Scan TCP port 80&lt;br /&gt;
nmap -p T:80 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
## Scan UDP port 53&lt;br /&gt;
nmap -p U:53 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
## Scan two ports ##&lt;br /&gt;
nmap -p 80,443 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
## Scan port ranges ##&lt;br /&gt;
nmap -p 80-200 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
## Combine all options ##&lt;br /&gt;
nmap -p U:53,111,137,T:21-25,80,139,8080 192.168.1.1&lt;br /&gt;
nmap -p U:53,111,137,T:21-25,80,139,8080 server1.cyberciti.biz&lt;br /&gt;
nmap -v -sU -sT -p U:53,111,137,T:21-25,80,139,8080 192.168.1.254&lt;br /&gt;
 &lt;br /&gt;
## Scan all ports with * wildcard ##&lt;br /&gt;
nmap -p &amp;quot;*&amp;quot; 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
## Scan top ports i.e. scan $number most common ports ##&lt;br /&gt;
nmap --top-ports 5 192.168.1.1&lt;br /&gt;
nmap --top-ports 10 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
Sample outputs:&lt;br /&gt;
&lt;br /&gt;
Starting Nmap 5.00 ( http://nmap.org ) at 2012-11-27 01:23 IST&lt;br /&gt;
Interesting ports on 192.168.1.1:&lt;br /&gt;
PORT     STATE  SERVICE&lt;br /&gt;
21/tcp   closed ftp&lt;br /&gt;
22/tcp   open   ssh&lt;br /&gt;
23/tcp   closed telnet&lt;br /&gt;
25/tcp   closed smtp&lt;br /&gt;
80/tcp   open   http&lt;br /&gt;
110/tcp  closed pop3&lt;br /&gt;
139/tcp  closed netbios-ssn&lt;br /&gt;
443/tcp  closed https&lt;br /&gt;
445/tcp  closed microsoft-ds&lt;br /&gt;
3389/tcp closed ms-term-serv&lt;br /&gt;
MAC Address: BC:AE:C5:C3:16:93 (Unknown)&lt;br /&gt;
 &lt;br /&gt;
Nmap done: 1 IP address (1 host up) scanned in 0.51 seconds&lt;br /&gt;
 &lt;br /&gt;
#16: The fastest way to scan all your devices/computers for open ports ever&lt;br /&gt;
&lt;br /&gt;
nmap -T5 192.168.1.0/24&lt;br /&gt;
#17: How do I detect remote operating system?&lt;br /&gt;
&lt;br /&gt;
You can identify a remote host apps and OS using the -O option:&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
nmap -O 192.168.1.1&lt;br /&gt;
nmap -O  --osscan-guess 192.168.1.1&lt;br /&gt;
nmap -v -O --osscan-guess 192.168.1.1&lt;br /&gt;
Sample outputs:&lt;br /&gt;
&lt;br /&gt;
Starting Nmap 5.00 ( http://nmap.org ) at 2012-11-27 01:29 IST&lt;br /&gt;
NSE: Loaded 0 scripts for scanning.&lt;br /&gt;
Initiating ARP Ping Scan at 01:29&lt;br /&gt;
Scanning 192.168.1.1 [1 port]&lt;br /&gt;
Completed ARP Ping Scan at 01:29, 0.01s elapsed (1 total hosts)&lt;br /&gt;
Initiating Parallel DNS resolution of 1 host. at 01:29&lt;br /&gt;
Completed Parallel DNS resolution of 1 host. at 01:29, 0.22s elapsed&lt;br /&gt;
Initiating SYN Stealth Scan at 01:29&lt;br /&gt;
Scanning 192.168.1.1 [1000 ports]&lt;br /&gt;
Discovered open port 80/tcp on 192.168.1.1&lt;br /&gt;
Discovered open port 22/tcp on 192.168.1.1&lt;br /&gt;
Completed SYN Stealth Scan at 01:29, 0.16s elapsed (1000 total ports)&lt;br /&gt;
Initiating OS detection (try #1) against 192.168.1.1&lt;br /&gt;
Retrying OS detection (try #2) against 192.168.1.1&lt;br /&gt;
Retrying OS detection (try #3) against 192.168.1.1&lt;br /&gt;
Retrying OS detection (try #4) against 192.168.1.1&lt;br /&gt;
Retrying OS detection (try #5) against 192.168.1.1&lt;br /&gt;
Host 192.168.1.1 is up (0.00049s latency).&lt;br /&gt;
Interesting ports on 192.168.1.1:&lt;br /&gt;
Not shown: 998 closed ports&lt;br /&gt;
PORT   STATE SERVICE&lt;br /&gt;
22/tcp open  ssh&lt;br /&gt;
80/tcp open  http&lt;br /&gt;
MAC Address: BC:AE:C5:C3:16:93 (Unknown)&lt;br /&gt;
Device type: WAP|general purpose|router|printer|broadband router&lt;br /&gt;
Running (JUST GUESSING) : Linksys Linux 2.4.X (95%), Linux 2.4.X|2.6.X (94%), MikroTik RouterOS 3.X (92%), Lexmark embedded (90%), Enterasys embedded (89%), D-Link Linux 2.4.X (89%), Netgear Linux 2.4.X (89%)&lt;br /&gt;
Aggressive OS guesses: OpenWrt White Russian 0.9 (Linux 2.4.30) (95%), OpenWrt 0.9 - 7.09 (Linux 2.4.30 - 2.4.34) (94%), OpenWrt Kamikaze 7.09 (Linux 2.6.22) (94%), Linux 2.4.21 - 2.4.31 (likely embedded) (92%), Linux 2.6.15 - 2.6.23 (embedded) (92%), Linux 2.6.15 - 2.6.24 (92%), MikroTik RouterOS 3.0beta5 (92%), MikroTik RouterOS 3.17 (92%), Linux 2.6.24 (91%), Linux 2.6.22 (90%)&lt;br /&gt;
No exact OS matches for host (If you know what OS is running on it, see http://nmap.org/submit/ ).&lt;br /&gt;
TCP/IP fingerprint:&lt;br /&gt;
OS:SCAN(V=5.00%D=11/27%OT=22%CT=1%CU=30609%PV=Y%DS=1%G=Y%M=BCAEC5%TM=50B3CA&lt;br /&gt;
OS:4B%P=x86_64-unknown-linux-gnu)SEQ(SP=C8%GCD=1%ISR=CB%TI=Z%CI=Z%II=I%TS=7&lt;br /&gt;
OS:)OPS(O1=M2300ST11NW2%O2=M2300ST11NW2%O3=M2300NNT11NW2%O4=M2300ST11NW2%O5&lt;br /&gt;
OS:=M2300ST11NW2%O6=M2300ST11)WIN(W1=45E8%W2=45E8%W3=45E8%W4=45E8%W5=45E8%W&lt;br /&gt;
OS:6=45E8)ECN(R=Y%DF=Y%T=40%W=4600%O=M2300NNSNW2%CC=N%Q=)T1(R=Y%DF=Y%T=40%S&lt;br /&gt;
OS:=O%A=S+%F=AS%RD=0%Q=)T2(R=N)T3(R=N)T4(R=Y%DF=Y%T=40%W=0%S=A%A=Z%F=R%O=%R&lt;br /&gt;
OS:D=0%Q=)T5(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=Y%DF=Y%T=40%W=&lt;br /&gt;
OS:0%S=A%A=Z%F=R%O=%RD=0%Q=)T7(R=N)U1(R=Y%DF=N%T=40%IPL=164%UN=0%RIPL=G%RID&lt;br /&gt;
OS:=G%RIPCK=G%RUCK=G%RUD=G)IE(R=Y%DFI=N%T=40%CD=S)&lt;br /&gt;
Uptime guess: 12.990 days (since Wed Nov 14 01:44:40 2012)&lt;br /&gt;
Network Distance: 1 hop&lt;br /&gt;
TCP Sequence Prediction: Difficulty=200 (Good luck!)&lt;br /&gt;
IP ID Sequence Generation: All zeros&lt;br /&gt;
Read data files from: /usr/share/nmap&lt;br /&gt;
OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .&lt;br /&gt;
Nmap done: 1 IP address (1 host up) scanned in 12.38 seconds&lt;br /&gt;
           Raw packets sent: 1126 (53.832KB) | Rcvd: 1066 (46.100KB)&lt;br /&gt;
See also: Fingerprinting a web-server and a dns server command line tools for more information.&lt;br /&gt;
&lt;br /&gt;
#18: How do I detect remote services (server / daemon) version numbers?&lt;br /&gt;
&lt;br /&gt;
nmap -sV 192.168.1.1&lt;br /&gt;
Sample outputs:&lt;br /&gt;
&lt;br /&gt;
Starting Nmap 5.00 ( http://nmap.org ) at 2012-11-27 01:34 IST&lt;br /&gt;
Interesting ports on 192.168.1.1:&lt;br /&gt;
Not shown: 998 closed ports&lt;br /&gt;
PORT   STATE SERVICE VERSION&lt;br /&gt;
22/tcp open  ssh     Dropbear sshd 0.52 (protocol 2.0)&lt;br /&gt;
80/tcp open  http?&lt;br /&gt;
1 service unrecognized despite returning data.&lt;br /&gt;
#19: Scan a host using TCP ACK (PA) and TCP Syn (PS) ping&lt;br /&gt;
&lt;br /&gt;
If firewall is blocking standard ICMP pings, try the following host discovery methods:&lt;br /&gt;
&lt;br /&gt;
nmap -PS 192.168.1.1&lt;br /&gt;
nmap -PS 80,21,443 192.168.1.1&lt;br /&gt;
nmap -PA 192.168.1.1&lt;br /&gt;
nmap -PA 80,21,200-512 192.168.1.1&lt;br /&gt;
#20: Scan a host using IP protocol ping&lt;br /&gt;
&lt;br /&gt;
nmap -PO 192.168.1.1&lt;br /&gt;
#21: Scan a host using UDP ping&lt;br /&gt;
&lt;br /&gt;
This scan bypasses firewalls and filters that only screen TCP:&lt;br /&gt;
&lt;br /&gt;
nmap -PU 192.168.1.1&lt;br /&gt;
nmap -PU 2000.2001 192.168.1.1&lt;br /&gt;
#22: Find out the most commonly used TCP ports using TCP SYN Scan&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
### Stealthy scan ###&lt;br /&gt;
nmap -sS 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
### Find out the most commonly used TCP ports using  TCP connect scan (warning: no stealth scan)&lt;br /&gt;
###  OS Fingerprinting ###&lt;br /&gt;
nmap -sT 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
### Find out the most commonly used TCP ports using TCP ACK scan&lt;br /&gt;
nmap -sA 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
### Find out the most commonly used TCP ports using TCP Window scan&lt;br /&gt;
nmap -sW 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
### Find out the most commonly used TCP ports using TCP Maimon scan&lt;br /&gt;
nmap -sM 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
#23: Scan a host for UDP services (UDP scan)&lt;br /&gt;
&lt;br /&gt;
Most popular services on the Internet run over the TCP protocol. DNS, SNMP, and DHCP are three of the most common UDP services. Use the following syntax to find out UDP services:&lt;br /&gt;
&lt;br /&gt;
nmap -sU nas03&lt;br /&gt;
nmap -sU 192.168.1.1&lt;br /&gt;
Sample outputs:&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Starting Nmap 5.00 ( http://nmap.org ) at 2012-11-27 00:52 IST&lt;br /&gt;
Stats: 0:05:29 elapsed; 0 hosts completed (1 up), 1 undergoing UDP Scan&lt;br /&gt;
UDP Scan Timing: About 32.49% done; ETC: 01:09 (0:11:26 remaining)&lt;br /&gt;
Interesting ports on nas03 (192.168.1.12):&lt;br /&gt;
Not shown: 995 closed ports&lt;br /&gt;
PORT     STATE         SERVICE&lt;br /&gt;
111/udp  open|filtered rpcbind&lt;br /&gt;
123/udp  open|filtered ntp&lt;br /&gt;
161/udp  open|filtered snmp&lt;br /&gt;
2049/udp open|filtered nfs&lt;br /&gt;
5353/udp open|filtered zeroconf&lt;br /&gt;
MAC Address: 00:11:32:11:15:FC (Synology Incorporated)&lt;br /&gt;
 &lt;br /&gt;
Nmap done: 1 IP address (1 host up) scanned in 1099.55 seconds&lt;br /&gt;
 &lt;br /&gt;
#24: Scan for IP protocol&lt;br /&gt;
&lt;br /&gt;
This type of scan allows you to determine which IP protocols (TCP, ICMP, IGMP, etc.) are supported by target machines:&lt;br /&gt;
&lt;br /&gt;
nmap -sO 192.168.1.1&lt;br /&gt;
#25: Scan a firewall for security weakness&lt;br /&gt;
&lt;br /&gt;
The following scan types exploit a subtle loophole in the TCP and good for testing security of common attacks:&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
## TCP Null Scan to fool a firewall to generate a response ##&lt;br /&gt;
## Does not set any bits (TCP flag header is 0) ##&lt;br /&gt;
nmap -sN 192.168.1.254&lt;br /&gt;
 &lt;br /&gt;
## TCP Fin scan to check firewall ##&lt;br /&gt;
## Sets just the TCP FIN bit ##&lt;br /&gt;
nmap -sF 192.168.1.254&lt;br /&gt;
 &lt;br /&gt;
## TCP Xmas scan to check firewall ##&lt;br /&gt;
## Sets the FIN, PSH, and URG flags, lighting the packet up like a Christmas tree ##&lt;br /&gt;
nmap -sX 192.168.1.254&lt;br /&gt;
 &lt;br /&gt;
See how to block Xmas packkets, syn-floods and other conman attacks with iptables.&lt;br /&gt;
&lt;br /&gt;
#26: Scan a firewall for packets fragments&lt;br /&gt;
&lt;br /&gt;
The -f option causes the requested scan (including ping scans) to use tiny fragmented IP packets. The idea is to split up the TCP header over&lt;br /&gt;
several packets to make it harder for packet filters, intrusion detection systems, and other annoyances to detect what you are doing.&lt;br /&gt;
&lt;br /&gt;
nmap -f 192.168.1.1&lt;br /&gt;
nmap -f fw2.nixcraft.net.in&lt;br /&gt;
nmap -f 15 fw2.nixcraft.net.in&lt;br /&gt;
## Set your own offset size with the --mtu option ##&lt;br /&gt;
nmap --mtu 32 192.168.1.1&lt;br /&gt;
#27: Cloak a scan with decoys&lt;br /&gt;
&lt;br /&gt;
The -D option it appear to the remote host that the host(s) you specify as decoys are scanning the target network too. Thus their IDS might report 5-10 port scans from unique IP addresses, but they won&amp;#039;t know which IP was scanning them and which were innocent decoys:&lt;br /&gt;
&lt;br /&gt;
nmap -n -Ddecoy-ip1,decoy-ip2,your-own-ip,decoy-ip3,decoy-ip4 remote-host-ip&lt;br /&gt;
nmap -n -D192.168.1.5,10.5.1.2,172.1.2.4,3.4.2.1 192.168.1.5&lt;br /&gt;
#28: Scan a firewall for MAC address spoofing&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
### Spoof your MAC address ##&lt;br /&gt;
nmap --spoof-mac MAC-ADDRESS-HERE 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
### Add other options ###&lt;br /&gt;
nmap -v -sT -PN --spoof-mac MAC-ADDRESS-HERE 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
### Use a random MAC address ###&lt;br /&gt;
### The number 0, means nmap chooses a completely random MAC address ###&lt;br /&gt;
nmap -v -sT -PN --spoof-mac 0 192.168.1.1&lt;br /&gt;
 &lt;br /&gt;
#29: How do I save output to a text file?&lt;br /&gt;
&lt;br /&gt;
The syntax is:&lt;br /&gt;
&lt;br /&gt;
nmap 192.168.1.1 &amp;gt; output.txt&lt;br /&gt;
nmap -oN /path/to/filename 192.168.1.1&lt;br /&gt;
nmap -oN output.txt 192.168.1.1&lt;br /&gt;
#30: Not a fan of command line tools?&lt;br /&gt;
&lt;br /&gt;
Try zenmap the official network mapper front end:&lt;br /&gt;
&lt;br /&gt;
Zenmap is the official Nmap Security Scanner GUI. It is a multi-platform (Linux, Windows, Mac OS X, BSD, etc.) free and open source application which aims to make Nmap easy for beginners to use while providing advanced features for experienced Nmap users. Frequently used scans can be saved as profiles to make them easy to run repeatedly. A command creator allows interactive creation of Nmap command lines. Scan results can be saved and viewed later. Saved scan results can be compared with one another to see how they differ. The results of recent scans are stored in a searchable database.&lt;br /&gt;
&lt;br /&gt;
You can install zenmap using the following apt-get command:&lt;br /&gt;
$ sudo apt-get install zenmap&lt;br /&gt;
&lt;br /&gt;
Sample outputs:&lt;br /&gt;
&lt;br /&gt;
[sudo] password for vivek:&lt;br /&gt;
Reading package lists... Done&lt;br /&gt;
Building dependency tree&lt;br /&gt;
Reading state information... Done&lt;br /&gt;
The following NEW packages will be installed:&lt;br /&gt;
  zenmap&lt;br /&gt;
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.&lt;br /&gt;
Need to get 616 kB of archives.&lt;br /&gt;
After this operation, 1,827 kB of additional disk space will be used.&lt;br /&gt;
Get:1 http://debian.osuosl.org/debian/ squeeze/main zenmap amd64 5.00-3 [616 kB]&lt;br /&gt;
Fetched 616 kB in 3s (199 kB/s)&lt;br /&gt;
Selecting previously deselected package zenmap.&lt;br /&gt;
(Reading database ... 281105 files and directories currently installed.)&lt;br /&gt;
Unpacking zenmap (from .../zenmap_5.00-3_amd64.deb) ...&lt;br /&gt;
Processing triggers for desktop-file-utils ...&lt;br /&gt;
Processing triggers for gnome-menus ...&lt;br /&gt;
Processing triggers for man-db ...&lt;br /&gt;
Setting up zenmap (5.00-3) ...&lt;br /&gt;
Processing triggers for python-central ...&lt;br /&gt;
Type the following command to start zenmap:&lt;br /&gt;
$ sudo zenmap&lt;br /&gt;
&lt;br /&gt;
Sample outputs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fig.02: zenmap in action&lt;br /&gt;
How do I detect and block port scanning?&lt;br /&gt;
&lt;br /&gt;
Try the following resources:&lt;br /&gt;
&lt;br /&gt;
How to use psad tool to detect and block port scan attacks in real time.&lt;br /&gt;
Debian / Ubuntu Linux: Install and Configure Shoreline Firewall (Shorewall).&lt;br /&gt;
CentOS / Redhat Iptables Firewall Configuration Tutorial.&lt;br /&gt;
Linux: 20 Iptables Examples For New SysAdmins.&lt;br /&gt;
20 Linux Server Hardening Security Tips.&lt;br /&gt;
REFERENCES:&lt;br /&gt;
The official Nmap project guide to network discovery and security Scanning.&lt;br /&gt;
The official Nmap project home page.&lt;br /&gt;
The nmap command has many more options, please go through man page or the documentation for more information. What are some of your favorite nmap command-line tricks? Share your favorite tips, tricks, and advice in the comments below&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://www.cyberciti.biz/networking/nmap-command-examples-tutorials/&lt;br /&gt;
&lt;br /&gt;
==Pranala Menarik==&lt;br /&gt;
&lt;br /&gt;
* [[Instalasi nmap]]&lt;br /&gt;
* [[nmap: scanning sebuah mesin]]&lt;br /&gt;
* [[nmap: top 30 perintah nmap]]&lt;br /&gt;
* [[nmap]]&lt;br /&gt;
* [[Beberapa Tip Hacking]]&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>