0x01 工具简介
Autoswagger 是一个命令行工具,用于发现、解析并测试使用 Swagger/OpenAPI 文档的未授权端点。它有助于识别 API 中未受保护端点的潜在安全问题,例如个人身份信息泄露和常见的密钥暴露。
0x02 工具使用
安装
安装依赖项
pip install -r requirements.txt检查安装,显示帮助:
python3 autoswagger.py -hFlag 标志 | Description 描述 |
urls | List of base URLs or direct spec URLs. 基本 URL 列表或直接规范 URL。 |
-v, --verbose | Enables verbose logging. Creates a log file under ~/.autoswagger/logs. 启用详细日志记录。在 ~/.autoswagger/logs 下创建日志文件。 |
-risk | Includes non-GET methods (POST, PUT, PATCH, DELETE) in testing. 测试中包含非 GET 方法(POST、PUT、PATCH、DELETE)。 |
-all | Includes 200 and 404 endpoints in output (excludes 401/403). 输出中包含 200 和 404 端点(排除 401/403)。 |
-product | Outputs only endpoints with PII or large responses, in JSON format. 仅输出包含个人身份信息(PII)或响应较大的端点,以 JSON 格式。 |
-stats | Displays scan statistics (e.g. requests, RPS, hosts with PII). 显示扫描统计信息(例如请求次数、每秒请求数量、包含个人身份信息的主机)。 |
-rate <N> | Throttles requests to N requests per second. Default is 30. Use 0 to disable rate limiting. 限制每秒最多 N 次请求。默认值为 30。使用 0 禁用速率限制。 |
-b, --brute | Enables brute-forcing of parameter values (multiple test combos). 启用参数值的暴力破解(多个测试组合)。 |
-json | Outputs results in JSON format instead of a Rich table in default mode. 在默认模式下,以 JSON 格式输出结果,而不是以丰富的表格形式。 |
0x03 工具获取
夸克网盘「autoswagger」
0x04 每日资源分享【全栈安全武器系统】
夸克网盘「Win11 全栈安全武器系统」
https://pan.quark.cn/s/51f39521deff
