Skip to main content

简介(Introduction)

因为xray 2.0系列工具使用的是统一的引擎,所以很多通用函数都可以直接使用,这里将介绍一些常用的通用函数。

参数介绍(Parameters)

通用参数(Common parameters)

HTTP客户端管理(HTTP Client Management)

连接管理(Connection management)

插件展示(Plugin Showcase)

目标拆解(Target disassembly)

结果输出(Result Output)

日志管理(Log Management)

通用功能(Common Functions)

反连优化(Reverse Optimization)

在xray2.0系列工具中,我们优化了反连的功能,当前在没有配置反连的前提下,会默认使用dnslog.cn作为反连的服务器使用。

配置文件(Configuration File)

最新版本的xray2.0系列工具都会在其对应的配置文件夹处创建一个example文件,同时不会再创建默认配置文件,如果希望修改配置,可以复制example文件并去掉example,修改其中内容即可
  • Windows:C:\Users\<用户名>\.xray\xapp
  • Linux\MacOS:~/.xray/xapp

Demo

run

group

disable

http-proxy

[http|https|socks5://][username[:password]@]host[:port]

proxy

socks5://[username[:password]@]host[:port]

target

output

目前支持的结果输出格式有:
  • xpoc:html,json
  • xapp:json