在Debian系統上監控Swagger API的工具中,APIDetector是一個推薦的選擇。以下是對APIDetector的詳細介紹:
安裝Prerequisites:
在運行APIDetector之前,請確保您的系統上安裝了Python 3.x和pip。您可以在此處下載Python。
安裝APIDetector:
使用以下命令將APIDetector克隆到本地:
git clone https://github.com/brinhosa/apidetector.git
cd apidetector
pip install -r requirements.txt
運行APIDetector:
使用命令行運行APIDetector。以下是一些使用示例:
掃描單域名:
python apidetector.py -d example.com
掃描單文件多域名:
python apidetector.py -i input_file.txt
指定輸出:
python apidetector.py -i input_file.txt -o output_file.txt
使用特定數量的線程:
python apidetector.py -i input_file.txt -t 20
使用HTTP和HTTPS協議掃描:
python apidetector.py -m -d example.com
在安靜模式下運行腳本(抑制詳細的輸出):
python apidetector.py -q -d example.com
使用自定義用戶代理運行腳本:
python apidetector.py -d example.com -ua "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
請注意,使用這些工具時應遵守相關法律法規,并確保您的操作符合公司政策和網絡安全標準。