{"id":40,"date":"2023-12-04T12:09:59","date_gmt":"2023-12-04T19:09:59","guid":{"rendered":"https:\/\/www.7softinteractive.net\/?p=40"},"modified":"2023-12-05T10:56:37","modified_gmt":"2023-12-05T17:56:37","slug":"linux-nmap","status":"publish","type":"post","link":"https:\/\/www.7softinteractive.net\/?p=40","title":{"rendered":"NMap"},"content":{"rendered":"\n<p>Nmap usage basic samples. Nmap is a scanning tool used by penetration testers. In this article, we have a couple of samples similar to a cheat sheet.<\/p>\n\n\n\n<!--more-->\n\n\n\n<pre class=\"wp-block-preformatted\">##** SCAN ONLY YOUR OWN HOSTS AND SERVERS !!! **##\n## Scanning Networks is your own responsibility ##\n \n# Syn Scan - Half Open Scanning (root only)\nnmap -sS 192.168.0.1\n \n# Connect Scan\nnmap -sT 192.168.0.1\n \n# Scanning all ports (0-65535)\nnmap -p- 192.168.0.1\n \n# Specifying the ports to scan\nnmap -p 20,22-100,443,1000-2000 192.168.0.1\n \n# Scan Version\nnmap -p 22,80 -sV 192.168.0.1\n \n# Ping scanning (entire Network)\nnmap -sP 192.168.0.0\/24\n \n# Treat all hosts as online -- skip host discovery\nnmap -Pn 192.168.0.101\n \n# Excluding an IP\nnmap -sS 192.168.0.0\/24 --exclude 192.168.0.10\n \n# Saving the scanning report to a file\nnmap -oN output.txt 192.168.0.1\n \n# OS Detection\nnmap -O 192.168.0.1\n \n# Enable OS detection, version detection, script scanning, and traceroute\nnmap -A 192.168.0.1\n \nhttps:\/\/nmap.org\/book\/performance-timing-templates.html\n \n-T paranoid|sneaky|polite|normal|aggressive|insane (Set a timing template)\n \n# -A OS and service detection with faster execution\nnmap -A -T aggressive cloudflare.com\n \n# Using decoys to evade scan detection\nnmap -p 22 -sV 192.168.0.101 -D 192.168.0.1,192.168.0.21,192.168.0.100\n \n# reading the targets from a file (ip\/name\/network separeted by a new line or a whitespace)\nnmap -p 80 -iL hosts.txt \n \n# exporting to out output file and disabling reverse DNS\nnmap -n -iL hosts.txt -p 80 -oN output.txt<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nmap usage basic samples. Nmap is a scanning tool used by penetration testers. In this article, we have a couple of samples similar to a cheat sheet.<\/p>\n","protected":false},"author":1,"featured_media":12,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.7softinteractive.net\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.7softinteractive.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.7softinteractive.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.7softinteractive.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.7softinteractive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":6,"href":"https:\/\/www.7softinteractive.net\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":66,"href":"https:\/\/www.7softinteractive.net\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/66"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.7softinteractive.net\/index.php?rest_route=\/wp\/v2\/media\/12"}],"wp:attachment":[{"href":"https:\/\/www.7softinteractive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.7softinteractive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.7softinteractive.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}