{"id":40761,"date":"2021-08-16T16:56:55","date_gmt":"2021-08-16T21:56:55","guid":{"rendered":"https:\/\/webirix.com\/?p=40761"},"modified":"2021-08-17T11:57:50","modified_gmt":"2021-08-17T16:57:50","slug":"uso-de-nmap-linux","status":"publish","type":"post","link":"https:\/\/webirix.com\/en\/uso-de-nmap-linux\/","title":{"rendered":"Using nmap LINUX"},"content":{"rendered":"<p>Nmap is not usually installed by default, therefore we proceed to it.<\/p>\n<p><strong>Debian, Ubuntu, Linux Mint and derivatives:<\/strong><\/p>\n<pre>sudo apt -y install nmap<\/pre>\n<p><strong>Centos 7, Rhel 7 and derivatives:<\/strong><\/p>\n<pre>sudo yum install nmap -y<\/pre>\n<p>The most used command is simply nmap hostname, this command will give you a list of all open ports and their services, for example:<\/p>\n<pre>csuarez @ WKR: ~ $ nmap wakalaquerico.com Starting Nmap 7.70 (https:\/\/nmap.org) at 2020-12-06 10:34 CST Nmap scan report for wakalaquerico.com (174.142.6.161) Host is up (0.15s latency). rDNS record for 174.142.6.161: adi- preschool.com Not shown: 958 filtered ports, 30 closed ports PORT STATE SERVICE 53 \/ tcp open domain 110 \/ tcp open pop3 143 \/ tcp open imap 443 \/ tcp open https 465 \/ tcp open smtps 993 \/ tcp open imaps 995 \/ tcp open pop3s Nmap done: 1 IP address (1 host up) scanned in 2.41 seconds<\/pre>\n<p>The following command will work for you to detect all active hosts on a network<\/p>\n<pre>nmap -sn 192.168.0.1\/24<\/pre>\n<p>To scan a specific port you will only have to use the -p flag<\/p>\n<pre>nmap 192.168.0.1 -p22 (in this example port 22 is scanned)<\/pre>\n<p>If you need more information about a host you can use the -sV flags which will give you versions<\/p>\n<pre>csuarez @ WKR: ~ $ nmap -sV 8.8.8.8 Starting Nmap 7.70 (https:\/\/nmap.org) at 2020-12-06 10:51 CST Nmap scan report for dns.google (8.8.8.8) Host is up ( 0.13s latency). Not shown: 998 filtered ports PORT STATE SERVICE VERSION 53 \/ tcp open tcpwrapped 443 \/ tcp open ssl \/ https sffe Nmap done: 1 IP address (1 host up) scanned in 2.41 seconds<\/pre>","protected":false},"excerpt":{"rendered":"<p>Nmap is not usually installed by default, therefore we proceed to it. Debian, Ubuntu, Linux Mint and derivatives: sudo apt -y install nmap Centos 7, Rhel 7 and derivatives: sudo yum install nmap -y The most used command is simply nmap hostname, this command will give you a list of all open ports and their \u2026<\/p>","protected":false},"author":27,"featured_media":40788,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-40761","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"jetpack_featured_media_url":"https:\/\/webirix.com\/wp-content\/uploads\/2021\/08\/nmap.jpg","_links":{"self":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/40761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/comments?post=40761"}],"version-history":[{"count":2,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/40761\/revisions"}],"predecessor-version":[{"id":40768,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/40761\/revisions\/40768"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/media\/40788"}],"wp:attachment":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/media?parent=40761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/categories?post=40761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/tags?post=40761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}