nmap

networkingLinux/Unix/Windows
The nmap command is one of the most frequently used commands in Linux/Unix-like operating systems. nmap Network exploration tool and security scanner

Quick Reference

Command Name:

nmap

Category:

networking

Platform:

Linux/Unix/Windows

Basic Usage:

nmap [options] [arguments]

Common Use Cases

    Syntax

    nmap [scan type] [options] {target specification}

    Options

    Option Description
    -sS TCP SYN scan (Default scan)
    -sT TCP connect scan
    -sU UDP scan
    -sA TCP ACK scan
    -sW TCP Window scan
    -sM TCP Maimon scan
    -sN TCP NULL scan
    -sF TCP FIN scan
    -sX TCP XMAS scan
    -sP Ping scan
    -sn No port scan (host discovery only)
    -sV Version detection
    -O OS detection
    -A Aggressive scan: OS detection, version detection, script scanning, and traceroute
    -p Only scan specified ports
    -p- Scan all ports (1-65535)
    -F Fast scan (scan fewer ports)
    -T<0-5> Set timing template (higher is faster)
    --script=