工具介绍
基本使用
dirsx -u https://www.baidu.com -w words.txt
指定目录递归扫描,目前暂无添加结果递归功能扫描,担心目录误报
dirsx -u https://www.baidu.com -w words.txt --split
# https://www.baidu.com/a/b/
# -> https://www.baidu.com/a/
# -> https://www.baidu.com/a/b/
指定备份文件进行扫描
dirsx -u https://www.baidu.com -w words.txt --bak
dirsx -u https://www.baidu.com -w words.txt --suffix h5
# https://www.baidu.com/admin
# -> https://www.baidu.com/adminh5
# --cookie
dirsx -u https://www.baidu.com -w words.txt --cookie "session=admin"
# --headers
dirsx -u https://www.baidu.com -w words.txt --headers "Authorization: bearer eyJ0eX..." --headers "X-Forwarded-For: 127.0.0.1"
# --headers-file
dirsx -u https://www.baidu.com -w words.txt --headers-file headers.txt
常见目录字典
dirsearch 的自带字典
长度为 1-5 的字母组合
... ...
~ kali$ dirsx -u http://127.0.0.1/
██████╗ ██╗██████╗ ███████╗██╗ ██╗
██╔══██╗██║██╔══██╗██╔════╝╚██╗██╔╝
██║ ██║██║██████╔╝███████╗ ╚███╔╝
██║ ██║██║██╔══██╗╚════██║ ██╔██╗
██████╔╝██║██║ ██║███████║██╔╝ ██╗
╚═════╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
1.1.0
xboy@遥遥领先
[+] You have not appoint payloads, so you can select from the list:
[0] fuzzing-dirs-common.txt
[1] fuzzing-dirs-dirsearch.txt
[2] fuzzing-files-php.txt
[3] fuzzing-letter-len1.txt
[4] fuzzing-letter-len2.txt
[5] fuzzing-letter-len3.txt
[6] fuzzing-letter-len4.txt
... ...
[+] Select payloads with number: 1
dirsx -u https://www.baidu.com --httpx
# Fuzzing dirs
dirsx --ffuf -u http://127.0.0.1/FUZZ -w words.txt
dirsx --ffuf -u http://127.0.0.1/FUZZ.php -w words.txt
dirsx --ffuf -u http://127.0.0.1/FUZZ/index.php -w words.txt
# Fuzzing headers
dirsx --ffuf -u http://127.0.0.1/ -H "x-forwarded-for: FUZZ"
~ kali$ dirsx -h
██████╗ ██╗██████╗ ███████╗██╗ ██╗
██╔══██╗██║██╔══██╗██╔════╝╚██╗██╔╝
██║ ██║██║██████╔╝███████╗ ╚███╔╝
██║ ██║██║██╔══██╗╚════██║ ██╔██╗
██████╔╝██║██║ ██║███████║██╔╝ ██╗
╚═════╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
1.1.0
xboy@遥遥领先
Usage:
dirsx [OPTIONS]
Application Options:
-u, --url= input url of target
-l, --list= input file containing list of target
-w, --wordlist= appoint wordlist for scanning directory
--title-len= set title display length (default: 30)
-t, --threads= number of threads to use (default: 20)
--timeout= timeout inseconds (default: 5)
-o, --output= file to write output results
--prefix= add prefix of payloads
--suffix= add suffix of payloads
-e, --extension= add extension eg: -e php,html
--remove-ext= remove extension eg: --remove-ext php | admin.php -> admin
--upper-title capitalize the first letter eg: admin -> Admin
--upper-all capitalize the all letter eg: admin -> ADMIN
--bak enable scanning backup file (default:false)
--split enable spliting the url path, eg: /a/b -> /a/, /a/b (default: false)
-X= method of http requests (default: GET)
-x, --excode= specify the status codes that be filtered eg: 400,404 (default:
400,404,406,416,501,502,503)
--cookie= set request cookies, eg: --cookie "session=admin"
-H, --headers= set request headers, string[] eg: -H "Token: admin=true" -H "Cookie:
login=true"
--headers-file= set request headers file, eg: --headers-file headers.txt
--proxy= set request proxy, eg: --proxy http://127.0.0.1:8080
--no-smart disable smart mode (automated filtering)
Help Options:
-h, --help Show this help message
dirsx $ tree
.
├── dicts
│ ├── fuzzing-dirs-common.txt
│ ├── fuzzing-dirs-dirsearch.txt
│ ├── fuzzing-files-php.txt
│ ├── fuzzing-letter-len1.txt
│ ├── fuzzing-letter-len2.txt
│ ├── fuzzing-letter-len3.txt
│ ├── fuzzing-letter-len4.txt
│ ├── fuzzing-months-1-12.txt
│ ├── fuzzing-numbers-0-9.txt
│ ├── fuzzing-payloads-aspx.txt
│ ├── fuzzing-payloads-bakfile.txt
│ ├── fuzzing-payloads-common.txt
│ ├── fuzzing-payloads-java.txt
│ ├── fuzzing-payloads-null.txt
│ ├── fuzzing-payloads-php.txt
│ ├── fuzzing-routers-common.txt
│ ├── fuzzing-words-len1-5.txt
│ └── fuzzing-years-1990-2024.txt
├── dirsx
工具获取
原文始发于微信公众号(吉吉说安全):一款比dirsearch好用的目录扫描工具
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论