作者 修订时间
wjlin0 2023-08-22 17:34:33

四种模式

扫描路径

通过指定路径文件或者默认不指定时,自动加载main.txt 中的路径,扫描

pathScan -u http://localhost:8080 -sc 404 -sbl 0

image-20230822155116797

扫描路径(递归)

-r 递归扫描 时间消耗长,判断路径的依据为 path的结尾 为 /,即为路径

pathScan -list url.txt -r sc 404 -sbl 0 -pf /root/.config/pathScan/dict/main.txt

image-20230822163449876

网络空间搜索引擎

[!Waring]

运行前,需配置对应的API至 $HOME/.config/pathScan/provider-config.yaml

通过调用搜索引擎的API,来收集目标,并且可指定扫描路径

支持的API -> shodan,shodan-idb,fofa,censys,quake,hunter,zoomeye,netlas,zone,binary

pathScan -uc -uq 'domain="baidu.com"' -ue fofa -ps "/api/v1/users"

image-20230822165720553

子域名收集

类似于 oneforall的主动收集过程与网络空间搜索相结合,收集子域名信息

pathScan -sub -sq 'baidu.com'

image-20230822170546203

辅助

上诉所提到的所有模式中,若想发现在请求中发现更多的域名,则可以使用参数 -sd、-sdl 该参数可以发现更多的域名

pathScan -u baidu.com -sd -ps / -sdl "beian.gov.cn,google.com"

image-20230822172149199

image-20230822172424339

很明显不止是 baidu.com,还是google.com 均能够被发现,并且收集

pathScan -u https://baidu.com -sd -sdl "google.com" -ps / # 普通扫描
pathScan -r -u "baidu.com" -sd # 递归
pathScan -uc -ue fofa  -uq 'domain="baidu.com"' -sd -sdl "google.com" # 搜索空间
pathScan -s -sq "baidu.com" -sd -ps / # 子域名收集

results matching ""

    No results matching ""