当前位置:网站首页>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>
边栏推荐
- Laravel8 uses passport login and JWT (generate token)
- [Yu Yue education] C language programming reference of Zhongbei College of Nanjing Normal University
- Golang 编译约束/条件编译 ( // +build <tags> )
- ncs成都新电面试经验
- Obsidan之数学公式的输入
- GOLand idea intellij 无法输入汉字
- 基本数据类型和string类型互相转化
- IP guard helps energy enterprises improve terminal anti disclosure measures to protect the security of confidential information
- 求有符号数的原码、反码和补码【C语言】
- Qt Charts使用(重写QChartView,实现一些自定义功能)
猜你喜欢
![[hard core science popularization] working principle of dynamic loop monitoring system](/img/d4/0c0281aec5a4f444528e8cfd401598.jpg)
[hard core science popularization] working principle of dynamic loop monitoring system

What is the method of manual wiring in PCB design in 22protel DXP_ Chengdu electromechanical Development Undertaking

Greenplum6.x搭建_安装
![[step on the pit] Nacos registration has been connected to localhost:8848, no available server](/img/ee/ab4d62745929acec2f5ba57155b3fa.png)
[step on the pit] Nacos registration has been connected to localhost:8848, no available server
![[Yugong series] February 2022 U3D full stack class 005 unity engine view](/img/19/dc1b2f74b9ec5f5808de3049793862.jpg)
[Yugong series] February 2022 U3D full stack class 005 unity engine view

调用华为游戏多媒体服务的创建引擎接口返回错误码1002,错误信息:the params is error

Rapid integration of authentication services - harmonyos platform

2 - 3 arbre de recherche

2-3 lookup tree

Greenplum6.x监控软件搭建
随机推荐
联想混合云Lenovo xCloud:4大产品线+IT服务门户
Gson转换实体类为json时报declares multiple JSON fields named
How to realize the high temperature alarm of the machine room in the moving ring monitoring system
[hard core science popularization] working principle of dynamic loop monitoring system
Routing information protocol rip
[paper reading] icml2020: can autonomous vehicles identify, recover from, and adapt to distribution shifts?
POJ - 3616 Milking Time(DP+LIS)
Database storage - table partition
Are you holding back on the publicity of the salary system for it posts such as testing, development, operation and maintenance?
Splunk query CSV lookup table data dynamic query
Train your dataset with swinunet
Qt Charts使用(重写QChartView,实现一些自定义功能)
[南京大学]-[软件分析]课程学习笔记(一)-introduction
Data type - integer (C language)
A bug using module project in idea
[Yu Yue education] C language programming reference of Zhongbei College of Nanjing Normal University
测试踩坑 - 当已有接口(或数据库表中)新增字段时,都需要注意哪些测试点?
字符串操作
求有符号数的原码、反码和补码【C语言】
【踩坑】nacos注册一直连接localhost:8848,no available server