Skip to content
cccskills
FreePublished on GitHub

recon

通用网络与资产信息收集。面向 IP、CIDR、主机名、企业/域名等尚未明确攻击面的目标,完成资产扩展、主机发现、TCP/UDP端口发现、服务/版本/协议识别、只读服务枚举、网络设备识别和漏洞候选研判。Recon only:不执行漏洞利用、口令爆破、服务配置修改或持久化。

The English summary is being prepared. Showing the original description.

See how to install

Files included (12)

  • SKILL.md7.2 KB
  • references/database-enum.md4.1 KB
  • references/enterprise-osint.md1.5 KB
  • references/external-recon.md3.2 KB
  • references/infrastructure-enum.md2.5 KB
  • references/internal-enum.md1.5 KB
  • references/messaging-enum.md1.6 KB
  • references/network-devices-enum.md4.9 KB
  • references/network-discovery.md1.9 KB
  • references/nse-scripts.md1.6 KB
  • references/service-enum.md3.3 KB
  • references/vulnerability-candidates.md526 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

/recon — 通用信息收集 + 服务枚举

scope: 把“只知道一个通用目标”推进到“已经知道它有哪些资产、主机、端口、服务、身份/权限状态、关系和高价值漏洞候选”。允许使用已经掌握的凭据做只读枚举;不做爆破、写入、配置修改、命令执行、CVE利用或持久化。

/recon 不再承担旧版 /recon-attack。直连网络服务的利用统一放到独立 /service-attack。

工具安装问题参阅 ../shared/tools.md。CVE 候选有精确版本才走 ../shared/cve-enrichment.md。不要一进来把 references/ 全读:外部拓线、端口、哪类服务枚举,分别在对应节再 Read 那一份。


开局与收尾

开局第一件事:Read ./notes.md。没有则 python ~/.claude/skills/bin/notes.py init。只按已拿下/凭据继续。 走到哪条链,才 Read 一份 references/<file>.md。禁止开局全读、禁止凭记忆写 payload。 监听 / sudo / 输密码 / Permission denied:立刻停,说明等操作者做什么,等回报。不要假装已成功。 收尾:

  1. 追加 ./notes.md
  2. python ~/.claude/skills/bin/modules.py tail <本模块名> Read 备用:~/.claude/skills/shared/modules.yaml 禁止 ./modules.yaml 和 python ../bin/...
  3. 优先 default_next;never_default 不得当作默认(操作者点名除外)
  4. 名册外的名字不许建议
  5. 停。等操作者选 /模块 或 /clear /edr-bypass 半条链未完:打通后回本模块,不要 /clear。

0. Recon 完成条件

Recon 不是“跑一遍 Nmap”。每个目标至少形成:

Target / Asset:
IP / Hostname / CIDR / Ownership:

Open TCP:
Open UDP:

Service Map:
- port/proto → product/version → auth mode → exposure

Read-only Enumeration:
- current/anonymous identity
- security controls
- relationships / linked services
- high-value configuration state

Vulnerability Candidates:
- CPE / version confidence
- CVE
- KEV / EPSS
- public PoC?
- Nuclei template?
- prerequisites still missing?

Unresolved:
- unknown ports
- filtered/ambiguous services
- credentials required for deeper enumeration

不要在 Recon 把“candidate”写成“已利用”。


1. 目标归一化

# IP / hostname basic
getent hosts TARGET
host TARGET
whois TARGET 2>/dev/null | head -80

# IP ownership
whois 203.0.113.10 | grep -Ei 'origin|route|netname|org|country' | head -40

记录:

Input = IP / hostname / CIDR / organization / domain
Resolved IPs = ...
ASN / owner = ...
Known scope boundaries = ...

如果一个 hostname 同时解析多个 IP,不要只扫第一条;记录所有 A/AAAA。


2. 外部资产扩展

企业/域名级任务按 references/external-recon.md 做:

Subdomain / DNS
Passive DNS / historical DNS
CT / TLS SAN-CN
ASN / BGP / CIDR
Internet search engines
SPF / DMARC / MX
CDN / origin candidates
Cloud object-storage asset names

中国企业/SRC场景的 ICP、APP、小程序、股权主体等放在 references/enterprise-osint.md,主流程不默认加载。


3. 主机与端口发现

优先将“快速发现”和“准确识别”拆开:

# 大量目标快速 TCP
naabu -l hosts.txt -tp full -verify -o tcp-open.txt

# 单目标/少量目标精扫
nmap -Pn -sV --version-all -p- TARGET -oA tcp-full

# UDP 不要只扫 20 个端口;先常用,再按证据扩展
sudo nmap -Pn -sU -sV --top-ports 100 TARGET -oA udp-top100

局域网存活发现:

nmap -sn 10.10.10.0/24 -oA alive
sudo arp-scan --localnet

完整策略 → references/network-discovery.md。


4. 服务识别与未知端口

对每个开放端口先做协议确认,不要只靠端口号猜服务:

nmap -Pn -sV --version-all -p PORT TARGET
nc -nv TARGET PORT

TLS候选:

echo TARGET:PORT | tlsx -san -cn -silent
openssl s_client -connect TARGET:PORT -servername HOST </dev/null 2>/dev/null | \
  openssl x509 -noout -subject -issuer -dates -ext subjectAltName

HTTP候选:

echo TARGET:PORT | httpx -sc -title -server -tech-detect -silent

输出至少包含:

protocol confidence
product/version confidence
TLS certificate names
HTTP/non-HTTP
banner / ALPN / auth scheme

5. 服务级只读枚举

按发现的那一类服务只 Read 一份,不要把整套速查执行:

SMB/FTP/SMTP/DNS/NFS/SSH/RDP/WinRM/SNMP → references/service-enum.md
库/NoSQL                                 → references/database-enum.md
Docker/Vault/Consul/Nomad/etcd           → references/infrastructure-enum.md
队列                                     → references/messaging-enum.md
打印机/NAS/BMC/网设                      → references/network-devices-enum.md
NSE 需要时                               → references/nse-scripts.md

Recon 允许

version / banner / feature discovery
anonymous access check
known credential read-only enumeration
identity / role / privilege readout
share/index/topic/job/container listing
read-only relationship mapping
configuration GET / SHOW / INFO

Recon 不允许

password spraying / brute force
CREATE / ALTER / SET / CONFIG SET
upload / overwrite / delete
enable xp_cmdshell / external scripts
submit job / run container
write SSH key / cron / webshell
CVE exploitation / exploit NSE

6. 漏洞候选研判

先建立高置信版本/CPE,再关联漏洞:

# 现代候选引擎:可看 KEV / EPSS / PoC / template
vulnx search "PRODUCT && severity:critical" --limit 20
vulnx search "PRODUCT && is_kev:true" --limit 20

# cvemap(需要PDCP认证,适合CPE/厂商过滤)
cvemap -p PRODUCT -s critical,high -f age,kev,epss,poc,template

具体 → ../shared/cve-enrichment.md 与 references/vulnerability-candidates.md。

优先级不是 CVSS 单指标:

exact version/CPE match
+ reachable network path
+ prerequisite satisfied
+ KEV / high EPSS
+ public PoC / reliable template

7. 内网 Recon

已在目标主机上但尚未建立完整代理时,使用 references/internal-enum.md:

interface / route / ARP-neighbor / DNS
local connections
known internal hosts
high-value service families

原则:本机上下文优先,盲扫整个 RFC1918 空间最后考虑。


8. 输出格式

[HOST] 10.10.10.25

22/tcp OpenSSH ...
  Auth: publickey,password
  Version confidence: high
  Candidate CVEs: ...

1433/tcp Microsoft SQL Server ...
  Identity: CORP\\sqluser
  sysadmin: false
  IMPERSONATE: loginX
  Linked Server: SQL02
  xp_cmdshell: disabled

161/udp SNMP
  readable community/token: <known>
  sysDescr: HP LaserJet ...
  Related ports: 631/9100

Unresolved:
- 9001/tcp protocol ambiguous; TLS=no, HTTP=no, banner=...

Recon 到此完成。把上表写入 ./notes.md。候选只按「开局与收尾」跑 python ~/.claude/skills/bin/modules.py tail。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Active Directory exploitation after domain credentials exist: Kerberos (AS-REP/Kerberoast including cracking the ticket then using the account), delegation, NTLM coercion/relay, lateral movement, ACL abuse, ADCS ESC1-ESC17 and CVE paths, dMSA/BadSuccessor, Kerberos reflection, identity confusion, management-plane, domain trust, and domain persistence. Own the current AD chain through crack-and-use to DA, equivalent domain control, or the targeted host SYSTEM. Do not stop after requesting TGS. Host C2 belongs to /post. Operator chooses next modules.

The English summary is being prepared. Showing the original description.

pale-knight/redteam-skill51Updated Aug 23, 2026

Active Directory reconnaissance with or without credentials: user/group/computer enumeration, ACL/delegation, ADCS, modern Windows LAPS, BloodHound, Server 2025/dMSA/Ghost SPN candidates, and trust mapping. Recon only — do not exploit Kerberoast-to-DA, DCSync, or change passwords. Operator may select /ad-attack after cards are ready.

The English summary is being prepared. Showing the original description.

pale-knight/redteam-skill51Updated Aug 23, 2026

cicd

Free

CI/CD pipeline and software-supply-chain exploitation: Jenkins, GitHub Actions, GitLab CI/CD, Azure DevOps, Gitea/Forgejo, self-hosted runners/agents, poisoned pipeline execution, artifact/cache abuse, dependency confusion, third-party Action trust, GitOps/registry poisoning, workload identity/OIDC, and emerging agentic CI/CD. Use this skill when the operator has access to a CI/CD system, source repository, build/deploy configuration, runner/agent, artifact/package/registry path, or software delivery trust chain.

The English summary is being prepared. Showing the original description.

pale-knight/redteam-skill51Updated Aug 23, 2026

Cloud control-plane exploitation for AWS, Azure/Entra, GCP, and Alibaba Cloud: IAM/RAM privilege escalation, impersonation, cross-account trust, serverless/compute control, and cloud-native persistence. Host OS persistence/C2 after root/SYSTEM belongs to /post. K8s RBAC belongs to /k8s. Operator chooses next modules; new identities default to /cloud-recon first.

The English summary is being prepared. Showing the original description.

pale-knight/redteam-skill51Updated Aug 23, 2026

Cloud control-plane reconnaissance for AWS, Azure/Entra, GCP, and Alibaba Cloud: identity, IAM/RAM, trust, resources, metadata, and managed-Kubernetes cloud-side boundary. Recon only — no policy changes, no privilege escalation. Operator may select /cloud-attack or /k8s.

The English summary is being prepared. Showing the original description.

pale-knight/redteam-skill51Updated Aug 23, 2026

creds

Free

Credential operations: secret discovery, classification, extraction, conversion, offline cracking of hashes the operator already has as a credential job, policy-aware spraying, NetNTLM capture, generic SMB relay, and Windows/Linux harvest. Do not hijack an in-progress /ad-attack Kerberoast/AS-REP chain (that module cracks and uses the ticket itself). Do not DCSync, read LAPS LDAP, or escalate cloud IAM. Usable credentials are recorded; the operator chooses the next module.

The English summary is being prepared. Showing the original description.

pale-knight/redteam-skill51Updated Aug 23, 2026

See all skills by pale-knight

Report a problem with this skill