| name | Network Reconnaissance |
| description | This skill should be used when the user asks about "nmap", "port scanning",
"network reconnaissance", "service discovery", "masscan", "host discovery",
"banner grabbing", or needs guidance on network enumeration techniques.
|
| version | 1.0.0 |
Network Reconnaissance Skill
Overview
Comprehensive network reconnaissance techniques for identifying open ports, running services, and potential attack vectors on target systems.
Port Scanning with Nmap
Quick Discovery Scans
nmap -sC -sV -T4 <TARGET>
nmap -F <TARGET>
nmap -sn 10.10.10.0/24
Comprehensive Scans
nmap -p- -T4 --min-rate=1000 <TARGET>
nmap -p- -sC -sV <TARGET>
sudo nmap -sU --top-ports 20 <TARGET>
Stealth Options
sudo nmap -sS <TARGET>
nmap -sT <TARGET>
nmap -T2 --scan-delay 1s <TARGET>
Nmap Script Engine (NSE)
Categories
nmap --script vuln <TARGET>
nmap --script safe <TARGET>
nmap --script default <TARGET>
nmap --script discovery <TARGET>
Service-Specific Scripts
nmap --script http-enum -p80,443 <TARGET>
nmap --script smb-enum* -p445 <TARGET>
nmap --script smb-vuln* -p445 <TARGET>
nmap --script ftp-anon,ftp-bounce -p21 <TARGET>
nmap --script ssh-* -p22 <TARGET>
Alternative Tools
Masscan (Faster than Nmap)
masscan -p1-65535 <TARGET> --rate=1000
masscan -p80,443,22,21,25,3389 <TARGET> --rate=1000
Rustscan (Fastest)
rustscan -a <TARGET> -- -sC -sV
Service Identification
Banner Grabbing
nc -nv <TARGET> <PORT>
telnet <TARGET> <PORT>
curl -I http://<TARGET>
Version Detection
nmap -sV --version-intensity 5 -p<PORT> <TARGET>
Common Ports Reference
| Port | Service | Notes |
|---|
| 21 | FTP | Check anonymous login |
| 22 | SSH | Version, auth methods |
| 23 | Telnet | Often unencrypted creds |
| 25 | SMTP | User enum, relay |
| 53 | DNS | Zone transfer |
| 80/443 | HTTP/S | Web testing |
| 88 | Kerberos | AD environment |
| 110/143 | POP3/IMAP | Mail access |
| 135 | MSRPC | Windows services |
| 139/445 | SMB | Shares, vulns |
| 389/636 | LDAP | AD enumeration |
| 1433 | MSSQL | xp_cmdshell |
| 3306 | MySQL | Default creds |
| 3389 | RDP | BlueKeep, brute |
| 5432 | PostgreSQL | Default creds |
| 5985/5986 | WinRM | PowerShell remote |
| 6379 | Redis | Unauth access |
| 8080 | HTTP-Alt | Web apps |
| 27017 | MongoDB | NoSQL |
Output Management
Save Results
nmap -oA scan_results <TARGET>
nmap -oG scan.gnmap <TARGET>
nmap -oX scan.xml <TARGET>
Parse Results
grep "open" scan.gnmap | cut -d' ' -f2
xsltproc scan.xml -o scan.html
Troubleshooting
Host Appears Down
nmap -Pn <TARGET>
Slow Scans
nmap -T4 --min-rate=5000 <TARGET>
Firewall Detected
nmap -f <TARGET>
nmap -D RND:10 <TARGET>