{"id":1382,"date":"2021-12-25T23:57:23","date_gmt":"2021-12-26T02:57:23","guid":{"rendered":"https:\/\/blog.abratel.com.br\/?p=1382"},"modified":"2024-12-17T17:56:13","modified_gmt":"2024-12-17T20:56:13","slug":"comando-linux-para-scanear-portas-abertas-em-um-ip","status":"publish","type":"post","link":"https:\/\/blog.abratel.com.br\/?p=1382","title":{"rendered":"Comando linux para scanear portas abertas em um ip"},"content":{"rendered":"<p>Ip ou dns, desse exemplo: 192.138.254.34 e server.exemplo.com.br<\/p>\n<p>TCP PORTS:<\/p>\n<p>nmap -sT -Pn- IP ou DNS<\/p>\n<p>[\/shell]<\/p>\n<p>UDP PORTS:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nnmap -sU -v felix\nopen|filtered ports\nnmap -sU -T4 scanme.nmap.org\n\nImproving Felix's UDP scan results with version detection\nnmap -sUV -F felix.nmap.org\nnmap -sUV -T4 scanme.nmap.org\n\nAttempting to disambiguate UDP ports with TTL discrepancies\nnping --udp --traceroute -c 13 -p 53 scanme.nmap.org\n\nnma Optimizing UDP Scan Time\nnmap -sUV -T4 -F --version-intensity 0 scanme.nmap.org\n\nScan all 65000 UDP ports (it will take 3-5 hours):\nsudo nmap -sU -p- the_ip\n\nAll you can add the -v for verbose.\n\n<\/pre>\n<p>Instalacao<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nOn CentOS. yum install nmap.\nOn Debian. apt-get install nmap.\nOn Ubuntu. sudo apt-get install nmap. Using the Nmap security scanner. Then you may run the command \u201cnmap\u201d on a terminal, accompanied by the target's IP or website address and the various available parameters.\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n[root@jupiter ]# nmap -sT -Pn- 192.168.254.34\n\nStarting Nmap 6.40 ( http:\/\/nmap.org ) at 2021-12-25 23:49 -03\nNmap scan report for 192.168.254.34\nHost is up (1.0s latency).\nNot shown: 997 closed ports\nPORT     STATE    SERVICE\n53\/tcp   filtered domain\n81\/tcp   open     hosts2-ns\n2000\/tcp open     cisco-sccp\n\nNmap done: 1 IP address (1 host up) scanned in 2.16 seconds\n\n# contra um dns\n\n[root@jupiter openvpn]# nmap -sT -Pn- server.exemplo.com.br\n\nStarting Nmap 6.40 ( http:\/\/nmap.org ) at 2021-12-25 23:49 -03\nNmap scan report for server.exemplo.com.br (186.111.12.12)\nHost is up (0.041s latency).\nrDNS record for 186.226.61.89: uferes.virtuaserver.com.br\nNot shown: 991 closed ports\nPORT     STATE    SERVICE\n21\/tcp   open     ftp\n25\/tcp   filtered smtp\n53\/tcp   open     domain\n80\/tcp   open     http\n111\/tcp  open     rpcbind\n222\/tcp  open     rsh-spx\n1720\/tcp open     H.323\/Q.931\n2000\/tcp open     cisco-sccp\n5666\/tcp open     nrpe\n\nNmap done: 1 IP address (1 host up) scanned in 1.94 seconds\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ip ou dns, desse exemplo: 192.138.254.34 e server.exemplo.com.br TCP PORTS: nmap -sT -Pn- IP ou DNS [\/shell] UDP PORTS: Instalacao<\/p>\n","protected":false},"author":1,"featured_media":1383,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1382"}],"collection":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1382"}],"version-history":[{"count":6,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1382\/revisions"}],"predecessor-version":[{"id":1758,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1382\/revisions\/1758"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/media\/1383"}],"wp:attachment":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}