offensive-tools/network/nmap/SKILL.md
Network port scanner for host discovery, port scanning, service/version detection, OS fingerprinting, and NSE script execution. Use when asked to scan a target, find open ports, enumerate services, identify OS, run vuln scripts, or perform network reconnaissance on an IP, range, or domain.
npx skillsauth add aeondave/malskill nmapInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fast, scriptable network scanner — the standard for port scanning and service enumeration.
# Basic TCP SYN scan, top 1000 ports
nmap -sS -T4 <target>
# Full port scan with version + scripts + OS detection
nmap -sS -sV -sC -O -p- -T4 <target> -oA output/nmap_full
# Fast top-100 ports
nmap -F -T4 <target>
| Flag | Scan Type | Notes |
|------|-----------|-------|
| -sS | TCP SYN (stealth) | Requires root; most common |
| -sT | TCP Connect | No root needed; louder |
| -sU | UDP scan | Slow; combine with -sS |
| -sN/sF/sX | Null/FIN/Xmas | Firewall evasion |
| -sA | ACK scan | Map firewall rules |
| -sV | Version detection | Service banners |
| -sC | Default scripts | Runs common NSE scripts |
| -O | OS detection | Requires root |
| -A | Aggressive | -sV -sC -O --traceroute |
-p 22,80,443 # specific ports
-p 1-1024 # range
-p- # all 65535 ports
--top-ports 1000 # top N most common
-F # top 100 (fast)
-oN file.txt # normal (human-readable)
-oX file.xml # XML (parseable)
-oG file.gnmap # grepable
-oA basename # all three formats
| Template | Use Case |
|----------|----------|
| -T0 | Paranoid — IDS evasion |
| -T1 | Sneaky |
| -T3 | Default |
| -T4 | Aggressive — fast networks |
| -T5 | Insane — may miss results |
Fine-grain: --min-rate 1000 --max-retries 2
nmap 192.168.1.1
nmap 192.168.1.0/24
nmap 192.168.1.1-254
nmap -iL targets.txt # from file
nmap --exclude 192.168.1.5
# Run a specific script
nmap --script smb-vuln-ms17-010 -p 445 <target>
# Run a category
nmap --script vuln <target>
nmap --script "safe and discovery" <target>
# Auth brute-force
nmap --script http-brute -p 80 <target>
Script categories: auth, broadcast, brute, default, discovery, dos, exploit, external, fuzzer, intrusive, malware, safe, version, vuln
# Host discovery only (ping sweep)
nmap -sn 192.168.1.0/24
# Full recon one-liner
nmap -sS -sV -sC -O -p- -T4 --open -oA full_scan <target>
# Internal Windows network
nmap -sS -p 135,139,445,3389,5985 -T4 192.168.1.0/24
# Web surface
nmap -sV -p 80,443,8080,8443 --script http-headers,http-title <target>
# UDP top services
nmap -sU --top-ports 20 -T4 <target>
# Fragment packets (bypass stateless packet filters)
nmap -f <target>
# Decoy scan (blend with fake source IPs)
nmap -D RND:10 <target>
nmap -D 192.168.1.5,192.168.1.10,ME <target>
# Idle scan (use zombie host — completely spoofed source)
nmap -sI <zombie_ip> <target>
# Custom source port (bypass firewall rules allowing DNS/HTTP back-traffic)
nmap --source-port 53 <target>
nmap --source-port 80 <target>
# Slow timing (T1/T2 to avoid threshold-based IDS)
nmap -T1 -p 22,80,443 <target>
# Randomize host order + append random data
nmap --randomize-hosts --data-length 25 <target>
nmap -6 -sV fe80::1%eth0
nmap -6 -sS -p 22,80,443 2001:db8::/32
| File | When to load |
|------|--------------|
| references/nse-scripts.md | NSE script list by category, syntax, vuln scripts, auth brute, discovery |
data-ai
Scoped routing: Linux operator; hosts, sessions, users, services, packages, logs, containers, SSH, network paths, privilege evidence.
development
Offensive methodology for ICS/OT/SCADA environments in authorized industrial penetration testing and red team operations. Use when assessing PLCs, RTUs, HMIs, engineering workstations, historians, or field devices running Modbus, DNP3, EtherNet/IP, S7comm/S7+, Profinet, IEC 60870-5-104, BACnet, or OPC-UA. Covers passive OT network enumeration, protocol-level device interrogation, PLC coil/register read-write attacks, HMI session exploitation, historian and engineering workstation compromise, and safe escalation rules for critical infrastructure scope. Does not cover: general IT network exploitation (network-technique), physical hardware interfaces UART/JTAG/SPI (hardware-technique), wireless sensor network attacks (wireless-technique), RF/SDR signal analysis (hardware-ctf or wireless-technique), or CTF-framed ICS lab tasks (ics-ctf).
tools
Offensive methodology for authorized game security assessments, game client security research, and game-adjacent penetration testing in real-world engagements. Use when assessing game clients for cheating vulnerabilities, testing anti-cheat effectiveness, auditing game server protocols for score manipulation or economic fraud, reverse engineering game DRM or license validation, analyzing game save file protection, or assessing game mod/plugin security. Covers: process memory scanning and manipulation (Cheat Engine methodology), game binary reversing for license and DRM bypass, game network protocol analysis and packet replay, anti-cheat mechanism analysis, save file format reversing and tampering, speed hack and value injection techniques. Does NOT cover: CTF game challenges (game-ctf), game engine source code auditing (web-exploit-technique or vuln-search-technique for the backend), or general binary exploitation (pwn-ctf or reversing-technique).
development
Auth assessment: hardware/embedded methodology; UART/JTAG/SWD/SPI/I2C, firmware extraction, boot/debug paths, embedded OS evidence.