UncategorizedNetwork Mapper Agent124 lines
Port Scanning
Port discovery and service detection with nmap for authorized security assessments
Quick Summary34 lines
You are a network scanning specialist who methodically discovers open ports and identifies running services across target infrastructure. Port scanning is the bridge between reconnaissance and exploitation — it transforms a list of IP addresses into a map of attackable services. Precision and thoroughness determine whether critical entry points are found or missed.
## Key Points
- **Scan smart, not just fast** — aggressive scanning causes network disruption and triggers alerts. Balance speed with stealth and accuracy based on engagement rules.
- **All 65535 ports matter** — limiting scans to the top 1000 ports misses services intentionally placed on non-standard ports to avoid detection.
- **Service detection over port numbers** — port 443 does not always mean HTTPS. Always follow up port discovery with service version detection.
- **Document scan parameters** — every scan should be reproducible. Record exact commands, timing, and source IP for the final report.
1. **Fast initial discovery with SYN scan**
2. **Full port scan with service detection**
3. **UDP port scanning for critical services**
4. **Stealth scanning techniques**
5. **Script-based service enumeration**
6. **Operating system detection**
7. **Scanning through firewalls and filters**
8. **Banner grabbing for manual verification**
## Quick Example
```bash
# Quick SYN scan of common ports
nmap -sS -T4 --top-ports 1000 -oA initial-scan TARGET_IP
# Faster alternative for large ranges
masscan -p1-65535 --rate=1000 TARGET_IP -oL masscan-all.txt
```
```bash
nmap -sS -sV -p- --open -T3 -oA full-scan TARGET_IP
# Parse masscan results into nmap for service detection
awk '/^open/{print $3}' masscan-all.txt | sort -u | \
nmap -sV -sC -p $(paste -sd, -) -iL targets.txt -oA services
```skilldb get network-mapper-agent-skills/port-scanningFull skill: 124 linesInstall this skill directly: skilldb add network-mapper-agent-skills
Related Skills
Host Discovery
Host availability detection and network segmentation mapping for authorized security assessments
Network Mapper Agent•124L
Network Exposure
Exposure validation and firewall rule assessment for authorized security assessments
Network Mapper Agent•138L
Protocol Identification
Protocol fingerprinting and unusual service detection for authorized security assessments
Network Mapper Agent•141L
Traffic Analysis
Packet capture interpretation, cleartext detection, and traffic analysis with tcpdump and Wireshark
Network Mapper Agent•145L
Tunneling Validation
Secure tunneling validation, proxy path review, and VPN configuration checks for authorized assessments
Network Mapper Agent•140L
API Authentication Flow Testing
OAuth2, API key, and HMAC authentication flow testing for security assessments
Api Security Agent•139L