Full port scan with service/version detection and default scripts on a subnet
Full port scan with service/version detection and default scripts on a subnet
Nmap / Reconnaissance
Command
nmap -sV -sC -p- --open -T4 192.168.1.0/24
Syntax
nmap [options] <target>
Use case
Initial reconnaissance on an internal network during a pentest engagement to map all services and open ports across the subnet.
Explanation
Performs a comprehensive scan: • -sV → Service version detection • -sC → Runs default NSE scripts • -p- → Scans all 65535 ports • --open → Only shows open ports • -T4 → Aggressive timing for faster results • /24 → Scans entire /24 subnet
Risk warning
Use only in systems you own or are explicitly authorized to test.
Example output
Nmap scan report for 192.168.1.1
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 8.9p1
80/tcp open http Apache httpd 2.4.52
443/tcp open ssl/https Apache httpd 2.4.52
3306/tcp open mysql MySQL 8.0.31
More examples
Primary example
nmap -sV -sC -p- --open -T4 192.168.1.0/24
Initial reconnaissance on an internal network during a pentest engagement to map all services and open ports across the subnet.
Related
Combined TCP SYN and UDP scan on common ports
Combined TCP SYN and UDP scan on common ports
nmap -sU -sS -p U:53,111,137,T:21-25,80,139,8080 192.168.1.1
Run vulnerability detection NSE scripts against common service ports
Run vulnerability detection NSE scripts against common service ports
nmap --script vuln -sV -p 80,443,22,21 <target>