Skip to content

it3asy/py-dirscan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

关于

一个扫描指定的WEB二级目录是否存在的小工具。

原理

当 http://127.0.0.1/ 下存在一个目录 test 时,访问 http://127.0.0.1/test 时,服务器会返回状态码301或302,并重定向到 http://127.0.0.1/test/ 。根据此特征可判断指定目录是否存在。
注:该方式并不绝对可靠

场景

适用于对多个目标进行少量目录猜解。

  1. 多线程是为多目标设置的,对单个目标不起作用;
  2. 为了减少超时目标引的时间消耗,猜解过程中一个目标连续2次出现网络错误会终止对该目标的猜解,因而对同一目标来说,待猜解目录越多中断的概率越大。

使用

python dirscan.py --targets=urls.txt --dict=common_dirs.txt --go
python dirscan.py --target=http://target/a/ --dict=common_dirs.txt --go

参数:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages