关于dirsearch库输出模式的使用方法

例如: python3 dirsearch.py -u https://www.baidu.com/ --format=json --output=REPORT('文件名随便命

再输入 nano REPORT 即可进入上述文件进行查看(作者是以json来做示范); 

 

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
dirsearch 是一个非常流行的目录扫描工具,可以用来查找 Web 应用程序的隐藏目录和文件。以下是 dirsearch使用方法: 1. 安装 dirsearch ``` git clone https://github.com/maurosoria/dirsearch.git ``` 2. 进入 dirsearch 目录 ``` cd dirsearch ``` 3. 运行 dirsearch ``` python3 dirsearch.py -u <URL> [options] ``` 其中,`<URL>` 是要扫描的目标 URL。 4. 选项 - `-e`:指定要扫描的文件扩展名,例如 `-e php,html,txt`。 - `-f`:指定要扫描的字典文件路径,例如 `-f /path/to/wordlist.txt`。 - `-x`:指定要排除的文件扩展名,例如 `-x jpg,png,gif`。 - `-t`:指定线程数,例如 `-t 10`。 - `-r`:指定递归扫描的深度,例如 `-r` 表示只扫描当前目录,`-r 3` 表示递归扫描三层目录。 - `-b`:指定要使用的 HTTP 头,例如 `-b "Authorization: Basic dXNlcjpwYXNzd29yZA=="`。 - `-s`:指定是否要在扫描结束后保存扫描结果,例如 `-s /path/to/output.txt`。 5. 示例 ``` python3 dirsearch.py -u http://example.com -e php,html -x jpg,png,gif -t 10 -r 3 -f /path/to/wordlist.txt -b "Authorization: Basic dXNlcjpwYXNzd29yZA==" -s /path/to/output.txt ``` 这个命令将扫描 http://example.com,只扫描 php 和 html 文件,排除 jpg、png 和 gif 文件,使用 10 个线程,递归扫描三层目录,使用 /path/to/wordlist.txt 字典文件,使用 HTTP 头 Authorization: Basic dXNlcjpwYXNzd29yZA==,扫描结束后将结果保存到 /path/to/output.txt。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值