Nmap

Network scanning tool with enumeration script to get detailed information about TCP/UDP ports, and the underlying system

Description

Nmap's main use case is finding open TCP ports, but while doing so, it can do much more.

Some useful options include (see man nmap and docs arrow-up-rightfor more details):

  • -sV, -O: Software versions, OS detection

  • -sC: Run default safe scriptsarrow-up-right

  • -Pn, -n: Disable ping, disable DNS resolution

  • -sS, -T4: Stealth scan (half connections, but requires sudo), faster scanning speed

  • -oN [filename]: Outputarrow-up-right to file

  • Situational options:

    • -p [ports]: Specify comma-separated or ranges of ports (-p- = all ports)

    • -sU: Scan UDP instead of TCP (slower and often inconsistent)

    • -vv: Verbose output while scan is running, seeing open ports before completion

    • 10.10.10.0/24: Subnets in target field

circle-info

Tip: While running, there are a few useful keybindsarrow-up-right to alter your scan:

  • v: Increase verbosity

  • [any]: Print status update

circle-exclamation

Last updated