lijiejie/swagger-exp
lijiejie/swagger-exp has 1,377 GitHub stars and 134 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-11 21:49 UTC. Last push 2024-06-07.
A Swagger API Exploit
Measured star growth
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalSwagger API Exploit 1.2
这是一个 Swagger REST API 信息泄露利用工具。 主要功能有:
- 遍历所有API接口,自动填充参数
- 尝试 GET / POST 所有接口,返回 Response Code / Content-Type / Content-Length ,用于分析接口是否可以未授权访问利用
- 分析接口是否存在敏感参数,例如url参数,容易引入外网的SSRF漏洞
- 检测 API认证绕过漏洞
- 在本地监听一个Web Server,打开Swagger UI界面,供分析接口使用
- 使用Chrome打开本地Web服务器,并禁用CORS,解决部分API接口无法跨域请求的问题
- 当工具检测到HTTP认证绕过漏洞时,本地服务器拦截API文档,修改path,以便直接在Swagger UI中进行测试
ChangeLog
- [2024-06-07] 增加支持 OpenAPI 3.0
- [2022-08-08] Fix chromeSwagger permission error
- [2021-04-04] 支持 Python3
扫描器改进建议
- 分析json文档,将发现的URL,自动添加到爬虫中
Usage
需要介入分析 api_summary.txt 文件中的内容
扫描所有API集,打开Swagger UI
python swagger-exp.py http://site.com/swagger-resources/
扫描一个API集,打开Swagger UI
python swagger-exp.py http://site.com/v2/api-docs
只打开Swagger UI,不扫描接口
python swagger-exp.py
工具截图


Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
562,051 starspublic-apis/public-apis
A collective list of free APIs
498,450 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
454,552 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,405 stars