{"id":1004,"date":"2022-07-11T15:28:35","date_gmt":"2022-07-11T15:28:35","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=1004"},"modified":"2022-11-05T10:53:18","modified_gmt":"2022-11-05T10:53:18","slug":"a-cheeky-nmap-scan-command-and-output-parse","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=1004","title":{"rendered":"Simple Nmap Ping Scan Example"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">NMAP (Network Mapper) is a great tool for scanning a network for hosts and devices. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m going to write a more in-depth article soon, but for now here is a good command that can be used to scan your network (with a ping scan).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmap -sP 192.168.1.0\/24<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">By default Nmap will perform a reverse DNS lookup on the active IP addresses it finds, to turn off DNS resolution run with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmap -sP -n 192.168.1.0\/24<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">But if you want to get a DNS lookup for all IP addresses scanned, irrespective of if the IP responded to a ping, you can use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmap -sP -R 192.168.1.0\/24<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>NMAP (Network Mapper) is a great tool for scanning a network for hosts and devices. I&#8217;m going to write a more in-depth article soon, but for now here is a good command that can be used to scan your network (with a ping scan). By default Nmap will perform a reverse DNS lookup on the &#8230; <a title=\"Simple Nmap Ping Scan Example\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=1004\" aria-label=\"Read more about Simple Nmap Ping Scan Example\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,22],"tags":[],"class_list":["post-1004","post","type-post","status-publish","format-standard","hentry","category-nmap","category-security"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1004"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1004\/revisions"}],"predecessor-version":[{"id":1335,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1004\/revisions\/1335"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}