swagger接口测试

swagger接口测试

1》https://github.com/lijiejie/swagger-exp
使用说明:
1、扫描所有API集,打开Swagger UI
python swagger-exp.py http://site.com/swagger-resources/
2、扫描一个API集,打开Swagger UI
python swagger-exp.py http://site.com/v2/api-docs
3、只打开Swagger UI,不扫描接口
python swagger-exp.py
 
2》也可以将swagger常用路径写入dirsearch 的db文件,进行扫描
批量扫描swagger,注意使用dirsearch扫描后会将域名转为IP:python3 dirsearch.py -r -l E:\outip.txt -w db/swagger.txt
posted @ 2023-05-15 17:20  小哥爱美食  阅读(446)  评论(0)    收藏  举报