Perform network reconnaissance and port scanning with Nmap to find open ports, detect services, identify vulnerabilities, and enumerate targets accurately.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install nmap-recon或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install nmap-recon⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/nmap-recon/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
Network reconnaissance and port scanning using Nmap. Use when asked to scan a target, find open ports, detect services, check for vulnerabilities, or perform network reconnaissance.
nmap must be installed (standard on Kali, available via package managers)nmap -sC -sV -oA scan_$(date +%Y%m%d_%H%M%S) TARGET
nmap -p- -sC -sV -oA fullscan_$(date +%Y%m%d_%H%M%S) TARGET
nmap -F -T4 TARGET
sudo nmap -sS -sV -O -oA stealth_$(date +%Y%m%d_%H%M%S) TARGET
sudo nmap -sU --top-ports 100 -oA udp_$(date +%Y%m%d_%H%M%S) TARGET
nmap --script vuln -oA vulnscan_$(date +%Y%m%d_%H%M%S) TARGET
nmap -A -T4 -oA aggressive_$(date +%Y%m%d_%H%M%S) TARGET
Nmap outputs in multiple formats with -oA:
.nmap - Human readable.xml - Machine parseable.gnmap - Greppable formatgrep "open" scan.gnmap | awk -F'[/]' '{print $1}' | tr ',' '\n' | sort -u
grep -E "^[0-9]+/" scan.nmap | awk '{print $1, $3, $4}'
xmllint --xpath "//port[@state='open']" scan.xml 2>/dev/null
| Profile | Command | Use Case | |---------|---------|----------| | Quick | nmap -F -T4 | Fast initial recon | | Standard | nmap -sC -sV | Service detection + default scripts | | Full | nmap -p- -sC -sV | All 65535 ports | | Stealth | sudo nmap -sS -T2 | Evasive scanning | | Vuln | nmap --script vuln | Vulnerability detection | | Aggressive | nmap -A -T4 | Full enumeration |
# List available scripts
ls /usr/share/nmap/scripts/
# Run specific category
nmap --script=default,safe TARGET
nmap --script=vuln TARGET
nmap --script=exploit TARGET
nmap --script=auth TARGET
# Run specific script
nmap --script=http-title TARGET
nmap --script=smb-vuln* TARGET
# Single host
nmap 192.168.1.1
# CIDR range
nmap 192.168.1.0/24
# Range
nmap 192.168.1.1-254
# From file
nmap -iL targets.txt
# Exclude hosts
nmap 192.168.1.0/24 --exclude 192.168.1.1
-T0 Paranoid (IDS evasion)-T1 Sneaky (IDS evasion)-T2 Polite (slow)-T3 Normal (default)-T4 Aggressive (fast)-T5 Insane (very fast, may miss ports)⚠️ Only scan targets you own or have explicit written authorization to test.
Never scan:
# 1. Quick scan to find live hosts
nmap -sn 192.168.1.0/24 -oA live_hosts
# 2. Fast port scan on discovered hosts
nmap -F -T4 -iL live_hosts.gnmap -oA quick_ports
# 3. Deep scan interesting hosts
nmap -p- -sC -sV -oA deep_scan TARGET
# 4. Vulnerability scan
nmap --script vuln -oA vuln_scan TARGET安装 Nmap Recon 后,可以对 AI 说这些话来触发它
Help me get started with Nmap Recon
Explains what Nmap Recon does, walks through the setup, and runs a quick demo based on your current project
Use Nmap Recon to perform network reconnaissance and port scanning with Nmap to find ...
Invokes Nmap Recon with the right parameters and returns the result directly in the conversation
What can I do with Nmap Recon in my developer & devops workflow?
Lists the top use cases for Nmap Recon, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/nmap-recon/ 目录(个人级,所有项目可用),或 .claude/skills/nmap-recon/(项目级)。重启 AI 客户端后,用 /nmap-recon 主动调用,或让 AI 根据上下文自动发现并使用。
Nmap Recon 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Nmap Recon 可免费安装使用。请查阅仓库了解许可证信息。
Perform network reconnaissance and port scanning with Nmap to find open ports, detect services, identify vulnerabilities, and enumerate targets accurately.
Nmap Recon 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Nmap Recon
Identifies repetitive steps in your workflow and sets up Nmap Recon to handle them automatically