pale-knight/redteam-skill / skills/recon
recon
Verified通用网络与资产信息收集。面向 IP、CIDR、主机名、企业/域名等尚未明确攻击面的目标,完成资产扩展、主机发现、TCP/UDP端口发现、服务/版本/协议识别、只读服务枚举、网络设备识别和漏洞候选研判。Recon only:不执行漏洞利用、口令爆破、服务配置修改或持久化。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.2 KB |
| references/database-enum.md | markdown | 4.1 KB |
| references/enterprise-osint.md | markdown | 1.5 KB |
| references/external-recon.md | markdown | 3.2 KB |
| references/infrastructure-enum.md | markdown | 2.5 KB |
| references/internal-enum.md | markdown | 1.5 KB |
| references/messaging-enum.md | markdown | 1.6 KB |
| references/network-devices-enum.md | markdown | 4.9 KB |
| references/network-discovery.md | markdown | 1.9 KB |
| references/nse-scripts.md | markdown | 1.6 KB |
| references/service-enum.md | markdown | 3.3 KB |
| references/vulnerability-candidates.md | markdown | 526 B |
references/network-discovery.md
View on GitHub# 网络发现 / 端口扫描 / 未知协议识别
---
## 1. TCP 发现
大量目标:
```bash
naabu -l hosts.txt -tp 1000 -verify -o tcp-top1000.txt
naabu -l priority-hosts.txt -tp full -verify -o tcp-full.txt
```
`naabu` 适合快速端口发现;服务确认交给 Nmap:
```bash
cut -d: -f1 tcp-full.txt | sort -u > ips.txt
nmap -Pn -sV --version-all -iL ips.txt -p 22,80,443,445,1433,3306,5432,6379,8080,8443
```
单目标:
```bash
nmap -Pn -sV --version-all -p- TARGET -oA tcp-full
```
---
## 2. UDP
不要把 UDP 当“顺便 top20”:
```bash
sudo nmap -Pn -sU -sV --top-ports 100 TARGET -oA udp-top100
```
根据上下文定向补:
```bash
sudo nmap -Pn -sU -sV -p 53,67,68,69,123,137,161,500,514,520,623,1900,4500,5353 TARGET
```
高价值:
```text
DNS 53
SNMP 161
IPMI 623
IKE 500/4500
TFTP 69
NTP 123
mDNS/SSDP 5353/1900
```
---
## 3. Host Discovery
同网段优先 ARP:
```bash
sudo arp-scan --localnet
nmap -sn 10.10.10.0/24
```
被 ICMP 过滤时,不要把 `ping` 失败当成主机离线:
```bash
nmap -Pn -p 22,80,443,445 TARGET
```
---
## 4. Unknown Port
顺序:
```text
Nmap version detection
→ raw banner
→ TLS?
→ HTTP?
→ protocol-specific probe
→ product/version candidate
```
```bash
nmap -Pn -sV --version-all -p PORT TARGET
nc -nv TARGET PORT
echo TARGET:PORT | httpx -sc -title -server -silent
echo TARGET:PORT | tlsx -san -cn -silent
```
TLS手工:
```bash
openssl s_client -connect TARGET:PORT -servername HOST -alpn 'h2,http/1.1' </dev/null
```
---
## 5. IPv6
发现 AAAA 或本地 IPv6 时不要忽略:
```bash
subfinder -d target.com -silent | dnsx -aaaa -resp -silent
nmap -6 -Pn -sV -p- IPV6
```
局域网邻居:
```bash
ip -6 neigh
```
---
## 6. 输出去重
建议统一:
```text
host,ip,port,transport,service,product,version,tls,http,title,confidence
```
不要把多个工具的猜测直接合并成“事实”;冲突时保留证据。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |