{"id":309,"date":"2012-06-18T16:40:31","date_gmt":"2012-06-18T08:40:31","guid":{"rendered":"http:\/\/rmohan.com\/?p=309"},"modified":"2012-06-18T16:54:36","modified_gmt":"2012-06-18T08:54:36","slug":"nmap-command","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=309","title":{"rendered":"Nmap Command"},"content":{"rendered":"<p><strong>Nmap Command<\/strong><\/p>\n<p>User can scan entire network or selected host or single server. Nmap is also useful to test your firewall rules. namp is metwork exploration tool and security \/ port scanner. According to nmap man page:<br \/>\nIt 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.<br \/>\nnmap port scanning<\/p>\n<p>TCP Connect scanning for localhost and network 192.168.0.0\/24<br \/>\n# nmap -v -sT localhost<br \/>\n# nmap -v -sT 192.168.0.0\/24<br \/>\nnmap TCP SYN (half-open) scanning<\/p>\n<p># nmap -v -sS localhost<br \/>\n# nmap -v -sS 192.168.0.0\/24<br \/>\nnmap TCP FIN scanning<\/p>\n<p># nmap -v -sF localhost<br \/>\n# nmap -v -sF 192.168.0.0\/24<br \/>\nnmap TCP Xmas tree scanning<\/p>\n<p>Useful to see if firewall protecting against this kind of attack or not:<br \/>\n# nmap -v -sX localhost<br \/>\n# nmap -v -sX 192.168.0.0\/24<br \/>\nnmap TCP Null scanning<\/p>\n<p>Useful to see if firewall protecting against this kind attack or not:<br \/>\n# nmap -v -sN localhost<br \/>\n# nmap -v -sN 192.168.0.0\/24<br \/>\nnmap TCP Windows scanning<\/p>\n<p># nmap -v -sW localhost<br \/>\n# nmap -v -sW 192.168.0.0\/24<br \/>\nnmap TCP RPC scanning<\/p>\n<p>Useful to find out RPC (such as portmap) services<br \/>\n# nmap -v -sR localhost<br \/>\n# nmap -v -sR 192.168.0.0\/24<br \/>\nnmap UDP scanning<\/p>\n<p>Useful to find out UDP ports<br \/>\n# nmap -v -O localhost<br \/>\n# nmap -v -O 192.168.0.0\/24<br \/>\nnmap remote software version scanning<\/p>\n<p>You can also find out what software version opening the port.<br \/>\n# nmap -v -sV localhost<br \/>\n# nmap -v -sV 192.168.0.0\/24<br \/>\nA note about Windows XP \/ 2003 \/ Vista version<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nmap Command<\/p>\n<p>User can scan entire network or selected host or single server. Nmap is also useful to test your firewall rules. namp is metwork exploration tool and security \/ port scanner. According to nmap man page: It is an open source tool for network exploration and security auditing. It was designed to rapidly scan [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/309"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=309"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":311,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/309\/revisions\/311"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}