<img src="static/logo.png" alt="dirsearch" width="675px">
dirsearch - Web path discovery
=========
![Build](https://img.shields.io/badge/Built%20with-Python-Blue)
![License](https://img.shields.io/badge/license-GNU_General_Public_License-_red.svg)
![Release](https://img.shields.io/github/release/maurosoria/dirsearch.svg)
![Stars](https://img.shields.io/github/stars/maurosoria/dirsearch.svg)
<a href="https://twitter.com/intent/tweet?text=dirsearch%20-%20Web%20path%20scanner%20by%20@_maurosoria%0A%0Ahttps://github.com/maurosoria/dirsearch">
![Tweet](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Fmaurosoria%2Fdirsearch)
</a>
**Current Release: v0.4.2 (2021.9.12)**
An advanced command-line tool designed to brute force directories and files in webservers, AKA web path scanner
**dirsearch** is being actively developed by [@maurosoria](https://twitter.com/_maurosoria) and [@shelld3v](https://twitter.com/shells3c_)
Table of Contents
------------
* [Installation](#installation--usage)
* [Wordlists](#wordlists-important)
* [Options](#options)
* [Configuration](#configuration)
* [How to use](#how-to-use)
* [Simple usage](#simple-usage)
* [Pausing progress](#pausing-progress)
* [Recursive scan](#recursive-scan)
* [Threads](#threads)
* [Prefixes / Suffixes](#prefixes--suffixes)
* [Blacklist](#blacklist)
* [Filters](#filters)
* [Raw request](#raw-request)
* [Wordlist formats](#wordlist-formats)
* [Exclude extensions](#exclude-extensions)
* [Scan sub-directories](#scan-sub-directories)
* [Proxies](#proxies)
* [Reports](#reports)
* [More example commands](#more-example-commands)
* [Support Docker](#support-docker)
* [Install Docker Linux](#install-docker-linux)
* [Build Image dirsearch](#build-image-dirsearch)
* [Using dirsearch](#using-dirsearch)
* [References](#references)
* [Tips](#tips)
* [Contribution](#contribution)
* [License](#license)
Installation & Usage
------------
**Requirement: python 3.7 or higher**
Choose one of these installation options:
- Install with git: `git clone https://github.com/maurosoria/dirsearch.git`
- Install with ZIP file: [Download here](https://github.com/maurosoria/dirsearch/archive/master.zip)
- Install with Docker: `docker build -t "dirsearch:v0.4.1"` ([more information](https://github.com/maurosoria/dirsearch#support-docker))
- Install with Kali Linux: `sudo apt-get install dirsearch`
- Install with PyPi: `pip3 install dirsearch`
**All in one:**
```
git clone https://github.com/maurosoria/dirsearch.git
cd dirsearch
pip3 install -r requirements.txt
python3 dirsearch.py -u <URL> -e <EXTENSIONS>
```
Wordlists (IMPORTANT)
---------------
**Summary:**
- Wordlist is a text file, each line is a path.
- About extensions, unlike other tools, dirsearch only replaces the `%EXT%` keyword with extensions from **-e** flag.
- For wordlists without `%EXT%` (like [SecLists](https://github.com/danielmiessler/SecLists)), **-f | --force-extensions** switch is required to append extensions to every word in wordlist, as well as the `/`.
- To use multiple wordlists, you can separate your wordlists with commas. Example: `wordlist1.txt,wordlist2.txt`.
**Examples:**
- Normal extensions
```
index.%EXT%
```
Passing **asp** and **aspx** extensions will generate the following dictionary:
```
index
index.asp
index.aspx
```
- Force extensions
```
admin
```
Passing "php" and "html" extensions with **-f**/**--force-extensions** flag will generate the following dictionary:
```
admin
admin.php
admin.html
admin/
```
Options
-------
```
Usage: dirsearch.py [-u|--url] target [-e|--extensions] extensions [options]
Options:
--version show program's version number and exit
-h, --help show this help message and exit
Mandatory:
-u URL, --url=URL Target URL
-l FILE, --url-list=FILE
Target URL list file
--stdin Target URL list from STDIN
--cidr=CIDR Target CIDR
--raw=FILE Load raw HTTP request from file (use `--scheme` flag
to set the scheme)
-e EXTENSIONS, --extensions=EXTENSIONS
Extension list separated by commas (Example: php,asp)
-X EXTENSIONS, --exclude-extensions=EXTENSIONS
Exclude extension list separated by commas (Example:
asp,jsp)
-f, --force-extensions
Add extensions to every wordlist entry. By default
dirsearch only replaces the %EXT% keyword with
extensions
Dictionary Settings:
-w WORDLIST, --wordlists=WORDLIST
Customize wordlists (separated by commas)
--prefixes=PREFIXES
Add custom prefixes to all wordlist entries (separated
by commas)
--suffixes=SUFFIXES
Add custom suffixes to all wordlist entries, ignore
directories (separated by commas)
--only-selected Remove paths have different extensions from selected
ones via `-e` (keep entries don't have extensions)
--remove-extensions
Remove extensions in all paths (Example: admin.php ->
admin)
-U, --uppercase Uppercase wordlist
-L, --lowercase Lowercase wordlist
-C, --capital Capital wordlist
General Settings:
-t THREADS, --threads=THREADS
Number of threads
-r, --recursive Brute-force recursively
--deep-recursive Perform recursive scan on every directory depth
(Example: api/users -> api/)
--force-recursive Do recursive brute-force for every found path, not
only paths end with slash
--recursion-depth=DEPTH
Maximum recursion depth
--recursion-status=CODES
Valid status codes to perform recursive scan, support
ranges (separated by commas)
--subdirs=SUBDIRS Scan sub-directories of the given URL[s] (separated by
commas)
--exclude-subdirs=SUBDIRS
Exclude the following subdirectories during recursive
scan (separated by commas)
-i CODES, --include-status=CODES
Include status codes, separated by commas, support
ranges (Example: 200,300-399)
-x CODES, --exclude-status=CODES
Exclude status codes, separated by commas, support
ranges (Example: 301,500-599)
--exclude-sizes=SIZES
Exclude responses by sizes, separated by commas
(Example: 123B,4KB)
--exclude-texts=TEXTS
Exclude responses by texts, separated by commas
(Example: 'Not found', 'Error')
--exclude-regexps=REGEXPS
Exclude responses by regexps, separated by commas
(Example: 'Not foun[a-z]{1}', '^Error$')
--exclude-redirects=REGEXPS
Exclude responses by redirect regexps or texts,
separated by commas (Example: 'https://okta.com/*')
--exclude-content=PATH
Exclude responses by response content of this path
--skip-on-status=CODES
Skip target whenever hit one of these status codes,
separated by commas, support ranges
--minimal=LENGTH Minimal response length
--maximal=LENGTH Maximal response length
--max-time=SECONDS Maximal runtime for the scan
-q, --quiet-mode Quiet mode
--full-url Full URLs i
没有合适的资源?快使用搜索试试~ 我知道了~
目录扫描工具dirsearch
共230个文件
py:202个
txt:7个
md:7个
需积分: 2 12 下载量 83 浏览量
2023-04-09
21:49:02
上传
评论
收藏 768KB RAR 举报
温馨提示
Dirsearch是一款用Python编写的目录扫描工具,可以用于发现Web应用程序中隐藏的文件和目录。它的特点是速度快、易于使用和高度可配置。Dirsearch提供了一个字典列表(默认自带),包含了常见的目录和文件名,同时也支持用户自定义字典。 使用Dirsearch时,用户只需指定目标URL和选择字典列表即可开始扫描。Dirsearch会尝试使用字典中的每个条目构建URL,并发送HTTP请求以检查响应是否存在。除此之外,用户还可以利用Dirsearch的多种选项进行自定义配置,例如设置线程数、忽略某些响应代码、设置代理等等。 常用的指令: -u 或 --url:指定目标URL。 -e 或 --extensions:指定扫描的文件扩展名,多个扩展名以逗号分隔。 -x 或 --exclude-extensions:指定不需要扫描的文件扩展名,多个扩展名以逗号分隔。 -w 或 --wordlist:指定使用的字典文件路径。 -t 或 --threads:指定线程数,默认为10。 -r 或 --recursive:设置是否递归扫描子目录,默认为否。 -s 或 --simple-repo
资源推荐
资源详情
资源评论
收起资源包目录
目录扫描工具dirsearch (230个子文件)
setup.cfg 42B
default.conf 2KB
Dockerfile 361B
.gitignore 153B
html_report_template.html 7KB
template.jinja2 615B
session.json 233KB
README.md 21KB
CHANGELOG.md 4KB
CONTRIBUTORS.md 3KB
bug_report.md 387B
ask_question.md 339B
pull_request_template.md 297B
feature_request.md 231B
logo.png 58KB
pause.png 8KB
core.py 178KB
jpcntx.py 88KB
compiler.py 72KB
environment.py 62KB
euctwfreq.py 61KB
big5freq.py 61KB
filters.py 53KB
langcyrillicmodel.py 50KB
jisfreq.py 50KB
gb2312freq.py 41KB
mbcssm.py 41KB
parser.py 40KB
langbulgarianmodel.py 39KB
connectionpool.py 39KB
langgreekmodel.py 39KB
langhungarianmodel.py 39KB
langhebrewmodel.py 36KB
langthaimodel.py 36KB
langturkishmodel.py 36KB
runtime.py 35KB
models.py 35KB
six.py 35KB
helpers.py 35KB
nodes.py 35KB
securetransport.py 35KB
utils.py 34KB
ext.py 32KB
socks.py 31KB
lexer.py 30KB
sessions.py 30KB
response.py 28KB
utils.py 27KB
euckrfreq.py 26KB
results.py 25KB
loaders.py 22KB
controller.py 22KB
retry.py 22KB
adapters.py 22KB
messages.py 21KB
compute_response.py 20KB
connection.py 20KB
poolmanager.py 20KB
cookies.py 19KB
bindings.py 18KB
ssl_.py 17KB
escsm.py 17KB
pyopenssl.py 17KB
__init__.py 17KB
sandbox.py 15KB
url.py 14KB
low_level.py 14KB
hebrewprober.py 14KB
des.py 13KB
bccache.py 13KB
cmdline.py 12KB
universaldetector.py 12KB
options.py 12KB
session_security.py 11KB
appengine.py 11KB
requester.py 11KB
_collections.py 11KB
common.py 11KB
idtracking.py 11KB
auth.py 10KB
timeout.py 10KB
requests_ntlm.py 10KB
ntlm.py 10KB
ansitowin32.py 10KB
chardistribution.py 9KB
debug.py 9KB
testing.py 9KB
unicode.py 9KB
exceptions.py 9KB
fields.py 9KB
exceptions.py 8KB
fuzzer.py 8KB
__init__.py 7KB
verbose.py 7KB
socks.py 7KB
dictionary.py 7KB
ssltransport.py 7KB
scanner.py 7KB
latin1prober.py 7KB
api.py 6KB
共 230 条
- 1
- 2
- 3
资源评论
dhu码农
- 粉丝: 26
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功