当前位置:网站首页>xray的简单使用
xray的简单使用
2022-07-07 06:09:00 【炫彩@之星】
xray的简单使用
概述
Xray是一款功能强大的安全评估工具,支持主动、被动多中扫描方式,支持常见web漏洞的自动化测试,可以灵活定义POC,功能丰富,调用简单,支持多种操作系统
特点
- 检测速度快
- 支持范围广
- 高级可定制
- 安全无威胁
- 更新速度快
支持的漏洞检测类型
- XSS漏洞检测 (key: xss)
- SQL 注入检测 (key: sqldet)
- 命令/代码注入检测 (key: cmd-injection)
- 目录枚举 (key: dirscan)
- 路径穿越检测 (key: path-traversal)
- XML 实体注入检测 (key: xxe)
- 文件上传检测 (key: upload)
- 弱口令检测 (key: brute-force)
- jsonp 检测 (key: jsonp)
- ssrf 检测 (key: ssrf)
- 基线检查 (key: baseline)
- 任意跳转检测 (key: redirect)
- CRLF 注入 (key: crlf-injection)
- Struts2 系列漏洞检测 (高级版,key: struts)
- Thinkphp系列漏洞检测 (高级版,key: thinkphp)
- POC 框架 (key: phantasm)
其中 POC 框架默认内置 Github 上贡献的 poc,用户也可以根据需要自行构建 poc 并运行
下载与安装
下载地址
GitHub地址:https://github.com/chaitin/xray/releases
文档地址:https://docs.xray.cool/
支持多种操作系统安装与下载
安装
1、因为博主是Windows64位操作系统,故选择64位的安装文件
2、进行解压,发现就一个exe文件
3、使用cmd命令行定位到当前xray.exe所在的路径
运行该文件
同时xray_windows_386.exe文件的同目录下生成了config.yaml配置文件
查看xray的版本号 version
查看 帮助文档 --help
配置介绍
Xray 目录下的 config.yaml 文件包含了所有的配置信息,配置主要是五个大类:http、plugins、 reverse、mitm、basic_crawle
设置允许扫描的域名
hostname_allowed: 是允许扫描的域名,hostname_disallowed: 是不允许扫描的域名,可以使用星号(表示所有)匹配
扫描插件配置
插件配置修改主要是开启和关闭,默认是全部开启,扫描时检测全部类型的漏洞,不需要检测的漏洞类型修改为 false;扫描时也可以指定插件,如:–plugins xss,xxe,cmd_injection
发包速率限制
防止请求太快被 waf 拦截,可以将每秒请求数减小,默认每秒 500
扫描代理配置
设置代理可以与 burp suite 等其他软件联动使用
代理模式
1、生成ca证书
xray_windows_386.exe genca
- 1
2、向浏览器导入ca证书
选择ca证书的所在路径
信任证书
结束
3、设置浏览器的代理
4、运行xray,进行监听
xray_windows_386.exe webscan --listen 127.0.0.1:7777 --html-output test.html
webscan web页面的漏洞检测
–listen 监听
–html-output 输出html格式
- 1
- 2
- 3
- 4
- 5
访问dvwa的sql注入模块
xray变化
结束 CTRL+c
3、打开test.html,查看生成的报告
爬虫模式
xray可借助爬虫进行漏洞检查
xray_windows_386.exe webscan --basic-crawler http://127.0.0.1/bc/DVWA/vulnerabilities/sqli/?id=2&Submit=Submit# --html-output 111.html
webscan web页面扫描
–basic-crawler 基础爬虫
- 1
- 2
- 3
- 4
Xray + BurpSuite
burpsuite作为Xray的上游代理(抓取Xray 发包)
即:浏览器 -> Xray -> burpsuite -> 服务器端
此方式可以方便查看Xray扫描网站所发的数据包,而且也可以测试poc是否正确
Xray作为burpsuite的上游代理(协助测试)
即:浏览器 -> burpsuite -> Xray -> 服务器端
此方式可以方便想测哪里就测哪里,想测试就发送给Xray,不想可以把数据包丢掉
</article>
边栏推荐
- Snyk dependency security vulnerability scanning tool
- PLSQL的安装和配置
- Opencv learning notes 1 -- several methods of reading images
- Go write a program that runs within a certain period of time
- Train your dataset with swinunet
- 南京商品房买卖启用电子合同,君子签助力房屋交易在线网签备案
- 【MySQL】数据库进阶之触发器内容详解
- Iptables' state module (FTP service exercise)
- 21 general principles of wiring in circuit board design_ Provided by Chengdu circuit board design
- POJ - 3616 Milking Time(DP+LIS)
猜你喜欢
Opencv learning note 4 - expansion / corrosion / open operation / close operation
How to realize the high temperature alarm of the machine room in the moving ring monitoring system
PLSQL的安装和配置
Greenplum6.x搭建_安装
Through the "last mile" of legal services for the masses, fangzheng Puhua labor and personnel law self-service consulting service platform has been frequently "praised"
[Yugong series] February 2022 U3D full stack class 005 unity engine view
Exercise arrangement 2.10, 11
数据分析方法论与前人经验总结2【笔记干货】
[Yu Yue education] higher vocational English reference materials of Nanjing Polytechnic University
数据分片介绍
随机推荐
POJ - 3784 running medium
2-3查找樹
JS operation
Snyk dependency security vulnerability scanning tool
What is the method of manual wiring in PCB design in 22protel DXP_ Chengdu electromechanical Development Undertaking
You should use Google related products with caution
A single game with goods increased by 100000, and the rural anchor sold men's clothes on top of the list?
Implementation of navigation bar at the bottom of applet
Calling the creation engine interface of Huawei game multimedia service returns error code 1002, error message: the params is error
Mock.js用法详解
Opencv learning note 3 - image smoothing / denoising
[kuangbin] topic 15 digit DP
[Yugong series] February 2022 U3D full stack class 007 - production and setting skybox resources
ncs成都新电面试经验
Category of IP address
Several ways of lambda used in functions in kotlin (higher-order functions)
let const
PLSQL的安装和配置
Opencv learning notes II - basic image operations
Required String parameter ‘XXX‘ is not present