Explore and execute Nmap commands for your operating system.
Click on to check if Nmap is installed on your system.
Use Nmap commands to scan and analyze network hosts and services.
Replace 192.168.1.1 with the target IP address.
Perform a basic scan on the target IP address.
nmap 192.168.1.1Scan a domain name to discover open ports and services.
nmap scanme.nmap.orgScan multiple targets by specifying their IP addresses.
nmap 192.168.1.1 127.0.0.1Scan a range of IP addresses within the specified range.
nmap 192.168.1.1-254Read target IP addresses from a file to perform the scan.
nmap -iL targets.txtScan 100 random hosts on the network.
nmap -iR 100Exclude a specific host from the scan.
nmap --exclude 192.168.1.1Perform a stealthy scan using TCP SYN packets.(default)
nmap 192.168.1.1 -sSPerform a full TCP connection scan on the target.(default without root)
nmap 192.168.1.1 -sTScan for open UDP ports (e.g., DNS) on the target.
nmap 192.168.1.1 -sUScan for open ports by sending TCP ACK packets.
nmap 192.168.1.1 -sAScan for open ports by analyzing the TCP window size.
nmap 192.168.1.1 -sWScan for open ports by sending TCP Maimon packets.
nmap 192.168.1.1 -sMList target IP addresses without performing a scan.
nmap 192.168.1.1-3 -sLPerform a simple ping scan to discover live hosts.
nmap 192.168.1.1/24 -snDisable host discovery and scan the target IP addresses.
nmap 192.168.1.1-5 -PnPerform a TCP SYN ping scan on the target IP addresses.(default port 80)
nmap 192.168.1.1-5 -PS22-25,80Perform a TCP ACK ping scan on the target IP addresses.(default port 80)
nmap 192.168.1.1-5 -PA22-25,80Perform a UDP ping scan on the target IP addresses.(default port 40125)
nmap 192.168.1.1-5 -PU53Perform an ARP ping scan on the local network.
nmap 192.168.1.1-1/24 -PRDisable DNS resolution during the scan.
nmap 192.168.1.1 -n Scan a specific port on the target IP address.
nmap 192.168.1.1 -p 21Scan a range of ports on the target IP address.
nmap 192.168.1.1 -p 21-100Scan multiple TCP and UDP ports on the target IP address.
nmap 192.168.1.1 -p U:53,T:21-25,80Scan all ports on the target IP address.
nmap 192.168.1.1 -p-Scan ports by specifying service names on the target IP address.
nmap 192.168.1.1 -p http,httpsPerform a fast scan of the top 100 ports on the target IP address.
nmap 192.168.1.1 -FScan the top 2000 most common ports on the target IP address.
nmap 192.168.1.1 --top-ports 2000Start the scan at port 1 and go up to port 65535 on the target IP address.
nmap 192.168.1.1 -p-65535Start the scan at port 0 and go through to port 65535 on the target IP address.
nmap 192.168.1.1 -p0-Attempts to determine the version of the service running on port.
nmap 192.168.1.1 -sVIntensity level 0 to 9. Higher number increases possibility of correctness.
nmap 192.168.1.1 -sV --version-intensity 8Enable light mode. Lower possibility of correctness. Faster.
nmap 192.168.1.1 -sV --version-lightEnable intensity level 9. Higher possibility of correctness. Slower.
nmap 192.168.1.1 -sV --version-allEnables OS detection, version detection, script scanning, and traceroute.
nmap 192.168.1.1 -ARemote OS detection using TCP/IP stack fingerprinting.
nmap 192.168.1.1 -OIf at least one open and one closed TCP port are not found it will not try OS detection against host.
nmap 192.168.1.1 -O --osscan-limitMakes Nmap guess more aggressively.
nmap 192.168.1.1 -O --osscan-guessSet the maximum number of OS detection tries against a target.
nmap 192.168.1.1 -O --max-os-tries 1Intrusion Detection System evasion. Slowest scan.
nmap 192.168.1.1 -T0Intrusion Detection System evasion. Slower scan. Less bandwidth.
nmap 192.168.1.1 -T1Slows down the scan to use less bandwidth and use less target machine resources. Default speed.
nmap 192.168.1.1 -T2Default speed. Assumes you are on a reasonably fast and reliable network.
nmap 192.168.1.1 -T3Speeds scans; assumes you are on a reasonably fast and reliable network.
nmap 192.168.1.1 -T4Speeds scan; assumes you are on an extraordinarily fast network.
nmap 192.168.1.1 -T5Requested scan (including ping scans) use tiny fragmented IP packets. Harder for packet filters.
nmap 192.168.1.1 -fSet your own offset size.
nmap 192.168.1.1 --mtu 32Send scans from spoofed IPs.
nmap -D 192.168.1.101,192.168.1.102,192.168.1.103,192.168.1.23 192.168.1.1Above example explained.
nmap -D decoy-ip1,decoy-ip2,your-own-ip,decoy-ip3,decoy-ip4 remote-host-ipScan Facebook from Microso (-e eth0 -Pn may be required).
nmap -S www.microso.com www.facebook.comUse given source port number.
nmap -g 53 192.168.1.1Relay connections through HTTP/SOCKS4 proxies.
nmap --proxies http://192.168.1.1:8080, http://192.168.1.2:8080 192.168.1.1Appends random data to sent packets.
nmap --data-length 200 192.168.1.1Output scan results to the file normal.file in normal format.
nmap 192.168.1.1 -oN normal.fileOutput scan results to the file xml.file in XML format.
nmap 192.168.1.1 -oX xml.fileOutput scan results to the file grep.file in grepable format.
nmap 192.168.1.1 -oG grep.fileOutput scan results in the three major formats (normal, XML, and grepable) at once.
nmap 192.168.1.1 -oA resultsOutput scan results in grepable format to the screen. -oN - and -oX - are also usable.
nmap 192.168.1.1 -oG -Append scan results to a previous scan file.
nmap 192.168.1.1 -oN file.file --append-outputIncrease the verbosity level of the scan output. Use -vv or more for greater effect.
nmap 192.168.1.1 -vIncrease the debugging level of the scan output. Use -dd or more for greater effect.
nmap 192.168.1.1 -dDisplay the reason a port is in a particular state, similar to using -vv.
nmap 192.168.1.1 --reasonOnly show open (or possibly open) ports in the scan results.
nmap 192.168.1.1 --openShow all packets sent and received during the scan.
nmap 192.168.1.1 -T4 --packet-traceShow the host interfaces and routes.
nmap --iflistResume a scan from the specified results file.
nmap --resume results.fileConsidered useful for discovery and safe.
nmap 192.168.1.1 -sCConsidered useful for discovery and safe.
nmap 192.168.1.1 --script defaultExample banner.
nmap 192.168.1.1 --script=bannerExample http.
nmap 192.168.1.1 --script=http*Example http and banner.
nmap 192.168.1.1 --script=http,bannerRemove intrusive scripts from the default scan.
nmap 192.168.1.1 --script "not intrusive"Run the snmp-sysdescr script with the specified arguments.
nmap --script snmp-sysdescr --script-args snmpcommunity=admin 192.168.1.1Generate a site map for the specified HTTP site.
nmap -Pn --script=http-sitemap-generator scanme.nmap.orgSearch for random web servers with the specified scripts.
nmap -n -Pn -p 80 --open -sV -vvv --script banner,http-title -iR 1000Guess subdomains by brute forcing DNS hostnames.
nmap -Pn --script=dns-brute domain.comRun safe SMB scripts on the target.
nmap -n -Pn -vv -O -sV --script smb-enum*,smb-ls,smb-mbenum,smb-os-discovery,smb-s*,smb-vuln*,smbv2* -vv 192.168.1.1Perform a Whois query on the specified domain.
nmap --script whois* domain.comCheck for cross site scripting vulnerabilities on the target.
nmap -p80 --script http-unsafe-output-escaping scanme.nmap.orgCheck for SQL injection vulnerabilities on the target.
nmap -p80 --script http-sql-injection scanme.nmap.orgScan an IPv6 address.
nmap -6 2607:f0d0:1002:51::4Display the Nmap help screen.
nmap -hEnter a custom Nmap command: