skills/tool/john-crack/SKILL.md
使用 John the Ripper 进行离线密码破解。当需要破解哈希(MD5/SHA/NTLM/Kerberos/ZIP/RAR/PDF/SSH Key 等)时使用。John 支持自动检测哈希类型、字典攻击、规则变形、增量爆破,内置 *2john 工具链从各种格式提取哈希。任何涉及离线密码破解、哈希还原、密码审计的场景都应使用此技能
npx skillsauth add wgpsec/AboutSecurity john-crackInstall 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.
John the Ripper 是最经典的离线密码破解工具。核心优势:自动哈希识别 + 丰富规则引擎 + *2john 提取工具链。支持 200+ 哈希类型。
项目地址:https://github.com/openwall/john
# 自动检测哈希类型并破解
john hashes.txt
# 指定哈希格式
john --format=Raw-MD5 hashes.txt
john --format=NT hashes.txt
john --format=Raw-SHA256 hashes.txt
# 字典攻击
john --wordlist=rockyou.txt hashes.txt
# 查看已破解的密码
john --show hashes.txt
# 字典 + 默认规则
john --wordlist=rockyou.txt --rules hashes.txt
# 字典 + best64 规则(最常用)
john --wordlist=rockyou.txt --rules=best64 hashes.txt
# 字典 + Jumbo 规则(更全面)
john --wordlist=rockyou.txt --rules=Jumbo hashes.txt
# 字典 + KoreLogic 规则(最复杂,最慢)
john --wordlist=rockyou.txt --rules=KoreLogic hashes.txt
# 列出可用规则
john --list=rules
# ZIP 文件
zip2john secret.zip > zip_hash.txt
john zip_hash.txt
# RAR 文件
rar2john secret.rar > rar_hash.txt
# PDF 文件
pdf2john.pl secret.pdf > pdf_hash.txt
# SSH 私钥
ssh2john id_rsa > ssh_hash.txt
# KeePass 数据库
keepass2john database.kdbx > keepass_hash.txt
# Office 文档
office2john document.docx > office_hash.txt
# Kerberos TGS (Kerberoasting)
john --format=krb5tgs --wordlist=rockyou.txt tgs_hashes.txt
# Kerberos AS-REP (AS-REP Roasting)
john --format=krb5asrep --wordlist=rockyou.txt asrep_hashes.txt
# NTLM Hash
john --format=NT --wordlist=rockyou.txt ntlm_hashes.txt
# 增量模式(纯暴力,自动递增长度)
john --incremental hashes.txt
# 指定字符集
john --incremental=Digits hashes.txt # 纯数字
john --incremental=Alnum hashes.txt # 字母数字
john --incremental=ASCII hashes.txt # 全 ASCII
# 掩码攻击(Hashcat 风格)
john --mask='?d?d?d?d?d?d' hashes.txt # 6 位数字
john --mask='?u?l?l?l?d?d?d?s' hashes.txt # 大写+小写x3+数字x3+特殊
# 恢复中断的破解
john --restore
# 查看当前进度
john --status
# 多核并行
john --fork=4 --wordlist=rockyou.txt hashes.txt
# 指定会话名称
john --session=my_crack --wordlist=rockyou.txt hashes.txt
# 只破解特定用户
john --users=admin hashes.txt
| 场景 | 命令 |
|------|------|
| NTLM 破解 | john --format=NT --wordlist=rockyou.txt ntlm.txt |
| Kerberoasting | john --format=krb5tgs --wordlist=rockyou.txt tgs.txt |
| SSH 密钥破解 | ssh2john id_rsa > h.txt && john --wordlist=rockyou.txt h.txt |
| ZIP 密码破解 | zip2john file.zip > h.txt && john h.txt |
| Linux shadow | john --wordlist=rockyou.txt /tmp/shadow |
| 字典+规则 | john --wordlist=rockyou.txt --rules=best64 hashes.txt |
testing
Azure 云环境渗透测试总体方法论。当目标使用 Azure/Microsoft 365/Entra ID、发现 Azure 相关资产(Blob Storage/App Service/Azure VM/Azure Functions)、获取 Azure 凭据(Service Principal/Managed Identity/Access Token)、或需要对 Azure 环境进行安全评估时使用。提供从未授权枚举到 Entra ID 攻击、服务提权、Cloud-to-OnPrem 横向移动的全流程决策树。覆盖 35+ Azure 服务攻击面
tools
Mythic C2 操作方法论。当需要部署 Mythic、选择 Mythic Agent、安装 C2 Profile、配置 HTTP/DNS/WebSocket/SMB/TCP 通信、生成 payload、管理回连任务,或把 Mythic 作为跨平台 C2 框架用于授权红队演练时使用。覆盖 mythic-cli 安装、Agent/Profile 选择、SSL 证书配置、payload 构建和基础 OPSEC 判断
development
Docker 安全测试与容器渗透方法论。当需要评估 Docker 容器、Docker Daemon、Docker Registry、镜像层、构建产物或容器逃逸风险时使用。覆盖容器环境识别、特权容器逃逸、docker.sock/Remote API 利用、procfs/cgroup/capabilities 滥用、Docker 用户组提权、运行时/内核 CVE、Registry 枚举、镜像层 Secret 分析和构建上下文泄露。发现 Docker 容器环境、Registry 暴露、镜像凭据或容器配置错误时应使用此技能
development
使用 PadBuster 进行 Padding Oracle 攻击。当发现 Web 应用使用 CBC 模式加密且存在 Padding Oracle 漏洞时使用。PadBuster 可自动解密密文和伪造任意明文对应的合法密文,适用于加密 Cookie/Token/URL 参数。任何涉及 Padding Oracle 攻击、CBC 密文解密、Cookie 伪造的场景都应使用此技能