- # Dirsearch基本語法 ```txt= # 使用預設字典檔掃描網頁路徑 dirsearch -u "URL" 使用預設字典檔掃描路徑 # 只顯示特定http狀態代碼 dirsearch -u "URL" -i 包含狀態碼,以逗號分隔,支持範圍(例如 200,300-399) # 排除特定http狀態碼 dirsearch -u "URL" -x 排除狀態=代碼排除狀態碼,以逗號分隔,支持範圍(例如 301,500-599) # 使用指定字典檔爆破 dirsearch -u "URL" -w 字典列表, --wordlists=單字列表自訂單字清單(以逗號分隔) # 使用指定proxy代理 dirsearch -u "URL" --proxy 使用指定proxy掃描 ``` - # 常用參數 ```txt= --max-recursion-depth=最大遞歸深度 例: dirsearch -u http://example.com --max-recursion-depth=5 -t --threads= 要使用的線程數 例: dirsearch -u http://example.com -t 10 --recursion-status=代碼 有效狀態碼,支持範圍(以逗號分隔) 例: dirsearch -u http://example.com -r --recursion-status=3 -x, --proxy:指定代理伺服器。 例: dirsearch -u http://example.com -x http://127.0.0.1:8080 -e, --extensions:指定要掃描的文件副檔名(類似.php 或 .txt) 例: dirsearch -u http://example.com -e php -s, --status-codes:指定允許的狀態碼。 例: dirsearch -u http://example.com -s 200,201,202 -c, --crawl-delay:指定延遲時間。 例: dirsearch -u http://example.com -c 60 --random-agent:使用隨機 User-Agent 進行掃描。 例: dirsearch -u http://example.com --random-agent -t, --threads:指定掃描線程數。 dirsearch -u http://example.com -t 10 --max-time=SECONDS 掃描的最大運行時間 dirsearch -u http://example.com --max-time=60 ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up