一款全面的 Python 扫描器,用于发现 Telerik 端点并检测 CVE-2017-9248 加密漏洞,具备企业级批量扫描能力。
git clone https://github.com/yourusername/telerik-scanner.git
cd telerik-scanner
pip install requests
python3 telerik.py -u https://target.com
python3 telerik.py -u https://target.com --path /admin/Telerik.Web.UI.DialogHandler.aspx
python3 telerik.py -u https://target.com -d
python3 telerik.py -u https://target.com -d -p 127.0.0.1:8080
python3 telerik.py -u https://target.com -d --csv results.csv
python3 telerik.py -u https://target.com -d --json results.json
python3 telerik.py -u https://target.com -d --csv results.csv --output-dir ./reports/
python3 telerik.py -f urls.txt -d
python3 telerik.py -f urls.txt -d -t 20
python3 telerik.py -f urls.txt -d --csv bulk_results.csv --json bulk_results.json
python3 telerik.py -f urls.txt --csv quick_results.csv
创建一个文本文件,每行一个 URL:
# 示例 URL 文件
# 以 # 开头的行是注释
https://example.com
https://test.example.com
https://demo.example.com
https://staging.example.com
| 标志 | 描述 | 默认值 |
|---|---|---|
-u, --url | 单目标扫描的目标 URL | - |
-f, --file | 包含多个 URL 的文件,用于批量扫描 | - |
-d, --discover | 启用全面的路径发现 | False |
--path | 要测试的特定路径 | /Telerik.Web.UI.DialogHandler.aspx |
-p, --proxy | 代理服务器 | - |
-t, --threads | 发现阶段的线程数 | 10 |
--csv | 将结果保存到 CSV 文件 | - |
--json | 将结果保存到 JSON 文件 | - |
--output-dir | 输出结果的目录 | 当前目录 |
CSV 文件包含每个端点的详细信息:
JSON 文件包含结构化的数据和所有扫描详情:
[
{
"target_url": "https://example.com",
"endpoints_found": 3,
"vulnerable_endpoints": 1,
"scan_status": "Completed",
"details": [
{
"url": "https://example.com/Telerik.Web.UI.DialogHandler.aspx",
"vulnerable": true,
"error_message": "Index was outside the bounds of the array.",
"version": "2017.2.711"
}
]
}
]
扫描器会提供实时进度更新和完整的摘要表格:
=====================================
批量扫描结果摘要
=====================================
扫描的目标总数: 5
成功扫描数: 4
失败扫描数: 1
发现的端点总数: 12
存在漏洞的端点总数: 2
----------------------------------------------------
目标 URL 端点数 存在漏洞 状态
----------------------------------------------------
https://example.com 3 1 已完成
https://test.example.com 2 0 已完成
https://demo.example.com 0 0 未发现端点
https://staging.example.com 4 1 已完成
https://dev.example.com 3 0 已完成
----------------------------------------------------
/Telerik.Web.UI.DialogHandler.aspx
/telerik/Telerik.Web.UI.DialogHandler.aspx
/admin/Telerik.Web.UI.DialogHandler.aspx
/cms/Telerik.Web.UI.DialogHandler.aspx
/Telerik.Web.UI.SpellCheckHandler.axd
/Telerik.Web.UI.WebResource.axd
/Telerik.ReportViewer.axd
/RadControls/
/aspnet_client/system_web/4_0_30319/RadControls/
[*] 测试特定路径:https://target.com/Telerik.Web.UI.DialogHandler.aspx
[+] 存在 CVE-2017-9248 漏洞!
[+] 错误信息:Index was outside the bounds of the array.
[+] 检测到的版本:2016.2.504
[*] 开始从文件扫描 URL:urls.txt
[*] 发现模式:已启用
[*] 每个目标的线程数:10
[*] 已加载 5 个 URL 用于扫描
============================================================
扫描目标 1/5:https://example.com
============================================================
[+] 发现:https://example.com/Telerik.Web.UI.DialogHandler.aspx(状态:200)
[+] 存在 CVE-2017-9248 漏洞!
[+] 错误信息:Index was outside the bounds of the array.
[+] 检测到的版本:2016.2.504
扫描器使用多种技术检测 CVE-2017-9248:
如果发现漏洞:
python3 telerik.py -u https://target.com
python3 telerik.py -f targets.txt -d -t 20 --csv audit_results.csv --json audit_results.json
python3 telerik.py -f targets.txt -d -p 127.0.0.1:8080 --csv proxy_results.csv
https://-d/--discover 进行全面的端点发现仅用于授权测试。用户需确保拥有适当的授权。