dirseach目錄掃描工具-安裝詳細(xì)教程
安裝:
1、github源碼下載解壓
使用 git 安裝:
推薦git clone https://github.com/maurosoria/dirsearch.git --depth 1
zip文件安裝;https://codeload.github.com/maurosoria/dirsearch/zip/refs/heads/master
docker安裝:詳細(xì)步驟見文:https://github.com/maurosoria/dirsearch?tab=readme-ov-file#support-docker
2、zip下載解壓之后安裝相關(guān)依賴及其庫
安裝依賴:
pip3 install -r requirements.txt
部分未安裝相關(guān)庫:
pip install setuptools
若安裝過相關(guān)庫更新庫:
pip install --upgrade setuptools
(setuptools 是一個用于構(gòu)建和分發(fā) Python 包的工具集。
它是 Python 打包生態(tài)系統(tǒng)的一部分,提供了一種簡化、
標(biāo)準(zhǔn)化的方式來描述、構(gòu)建、安裝和分發(fā) Python 項(xiàng)目。setuptools)
部分參數(shù)說明:
使用-u 指定需要掃描URL
使用-e 指定需要掃描的文件名 如:php;txt;html;zip
使用-h 查看幫助
排除多個響應(yīng)狀態(tài)碼:-x 403,302,301
-w 指定自定義的字典文件路徑
-r 遞歸掃描 耗時最長;掃描最全面
-R 遞歸深度級別
常用命令:
個人常用命令:
dirsearch.py -u http://xxxx //日常使用
dirsearch.py -u http://xxxx -x 403,404 //排除403,404響應(yīng)狀態(tài)
dirsearch.py -u http://xxxx -x 403,404 -e zip,php
dirsearch.py -u http://xxxx -r //遞歸掃描,不過容易被檢測
dirsearch.py -u http://xxxx -r -t 30 --proxy 127.0.0.1:8080 //使用代理

浙公網(wǎng)安備 33010602011771號