offensive-tools/network/nmap/SKILL.md
Auth/lab ref: Network port scanner for host discovery, port scanning, service/version detection, OS fingerprinting, and NSE script execution.
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 |
development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.