Back to library
Offensive Beginner Free

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

Log in to save

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.

linux macos windows kali nmap recon port-scan network enumeration

Related

Offensive Intermediate Free

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
nmap udp tcp stealth recon
Nmap / Reconnaissance Open
Offensive Intermediate Free

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>
nmap nse vulnerability cve web
Nmap / Reconnaissance Open