nmap port scanning commands 3 Mar 2026 Tuesday

Turritopsis Dohrnii Teo En Ming <[email protected]> Wed, 04 Mar 2026 05:17:31 +0000
Newsgroups gmane.os.freebsd.chat
Message-ID <U-3rztqXRgPamzllRGjeIyTnVRpH5MYMFV3yXx1NC3_0disk2YL6AWJY_GU4MxJ-Yt3XYWpmdNdNrg90lfT0W6VCqSENFVjcexSKohAhAk8=@protonmail.com>
Subject: nmap port scanning commands 3 Mar 2026 Tuesday

Good day from Singapore,

[01] nmap command to scan all 65535 TCP ports

nmap -p- -sS -sV -O -T4 -vv public_ip

What Each Option Does

-p- =E2=86=92 Scan all 65,535 TCP ports

-sS =E2=86=92 TCP SYN scan (standard for firewall auditing)

-sV =E2=86=92 Service/version detection

-O =E2=86=92 OS detection (helps verify what=E2=80=99s exposed externally)

-T4 =E2=86=92 Faster timing, fine for Internet audit

[02] nmap command to scan all 65535 UDP ports

nmap -p- -sU -T4 -vv target_ip

What Each Option Does

-p- =E2=86=92 Scan all 65,535 UDP ports

-sU =E2=86=92 UDP scan

-sV =E2=86=92 Service/version detection on open UDP ports

-O =E2=86=92 OS detection

-T4 =E2=86=92 Faster timing

[03] nmap command to scan list and range of TCP ports

nmap -sS -sV -p 22,80,443,1000-2000 -vv target_ip

[04] nmap command to scan list and range of UDP ports

nmap -sU -sV -p 53,123,500,1000-2000 -vv target_ip

Please remember to use Verbose Mode -vv.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
nmap scan - Aggressive Mode
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D

[05] nmap command to scan all 65535 TCP ports

nmap -p- -sS -A -T4 -vv target_ip

What This Does

-p- =E2=86=92 Scan ports 1=E2=80=9365535

-sS =E2=86=92 TCP SYN scan

-A =E2=86=92 Aggressive mode (service + OS + scripts + traceroute)

-T4 =E2=86=92 Faster timing

[06] nmap command to scan all 65535 UDP ports

nmap -p- -sU -A -T4 -vv target_ip

What -A Does in a UDP Scan

-A enables:

-sV =E2=86=92 Service detection =E2=9C=85 (useful for UDP)

-O =E2=86=92 OS detection =E2=9A=A0=EF=B8=8F (often unreliable with UDP-onl=
y scans)

-sC =E2=86=92 Default scripts

--traceroute

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
Explanation for Aggressive Mode
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D

The -A (Aggressive) option in Nmap automatically enables:

-sV =E2=86=92 Service/version detection

-O =E2=86=92 OS detection

-sC =E2=86=92 Default NSE scripts

--traceroute

So you do not need to specify -sV and -O separately if you use -A.

Regards,

Mr. Turritopsis Dohrnii Teo En Ming
Extremely Democratic People's Republic of Singapore
3 Mar 2026 Tuesday 11.18 pm Singapore Time