更多黑客技能 公众号:白帽子左一
作者:掌控安全-happy0717
xray是北京长亭科技其下的一款漏洞扫描工具,工具很好用只是没有批量扫描的功能,今天就带大家一起批量扫描。
官方网站:https://xray.cool/
直接下载就好
xray使用:
cd E:\渗透工具\xray_windows_amd64.exe
基本爬虫扫描
./xray_windows_amd64.exe webscan —basic-crawler url —html-output 1.html
代理模式与浏览器联动
.\xray_windows_amd64.exe webscan —listen 127.0.0.1:8080 —html-output 123.html
批量检查的 1.file 中的目标, 一行一个目标,带端口 没有基本爬虫功能!!!
./xray_windows_amd64.exe webscan —url-file 60.txt —html-output 1.html
python pppXray.py -r target.txt
有这些就够用了
我习惯使用powershell运行xray,因为powershell颜色分明更好看一些。
第一次使用的时候要初始化一下。
cd 到xray的目录
比如:cd E:\渗透工具\xray_windows_amd64.exe
之后./xray_windows_amd64.exe webscan —basic-crawler {要扫描的url} —html-output 1.html
初始化完会出现config.yaml的配置文件
xray默认是不扫描edu.cn的,想挖教育src的需要手动更改
要更改的地方长这样,在config.yaml里,把edu.cn删掉就好了,应该一共有两处。
当然以上都不是重点
重点:github上有这样一款工具可以让xray批量进行扫描
下载链接:
https://github.com/Cl0udG0d/pppXray
运行需要python3的环境
pppXray和xray要放在相同的文件夹下
首先要pip安装click
cmd运行:pip install click
还有几个位置是需要手动更改的,在pppXray.py中