Skip to content

A swiss army knife for xray-core to do task such as parsing xray config links, batch testing (latency, speedtest), socks proxy client, etc

License

Notifications You must be signed in to change notification settings

lilendian0x00/xray-knife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔪 xray-knife

Swiss army knife tool (cli) for xray-core.

I DEDICATE THIS TOOL TO MY DEAR PERSIAN PEOPLE.

استفاده از این نرم افزار برای حمایت کنندگان جمهوری اسلامی حرام است.

🎯 The Goal

Since there was no existing program capable of directly checking xray-core config links in bulk, I took it upon myself to develop such a tool. I have now made it publicly available, enabling everyone to benefit from and enjoy its functionality. (net http command). You can also benefit from other key features of this program, such as its rotating proxy functionality (proxy command).

You can view the flags of each command by using the -h or --help option.

🌟 Features (main commands)

  • parse: Detailed info about given xray config link.
  • subs: Subscription management tool.
  • net: Network testing tools for one or multiple xray configs.
  • scan: Scanning tools needed for bypassing GFW (CF Scanner, REALITY Scanner).
  • proxy: Creates proxy server to work as a client for xray-core configs.

📦 Download

Get the latest version from GitHub.

🏗️ Build instruction

Only works on golang version 1.21

  1. Install golang
  2. git clone https://github.com/lilendian0x00/xray-knife.git
  3. cd xray-knife
  4. go build .

🧪 Examples

http test CSV report

sample1

http test log

sample2

📋 TODO

protocols - parse

  • Add Vmess link support (vmess://..., full b64 encoded)
  • Add Vmess link v2 support (vmess://..., semi b64 encoded)
  • Add Vless link support (vless://...)
  • Add Shadowsocks support (ss://...)
  • Add Trojan support (trojan://...)
  • Add Socks support (socks://...)
  • Add Wireguard support (wireguard://...)
  • Load config from json file

subs

  • Fetch config links inside subscription
  • Sort config links based on their real delay test when saving them into a file

net

  • Add icmp (ping) tester
  • Add tcp connection delay tester
  • Add full connection delay (AKA real delay) tester
  • Add speed tester for http

proxy

  • Added CLI client feature
  • Option to switch outbound connection automatically based on passed parameter (E.g. interval, availability) (rotating proxy)

scan (under development)

  • Cloudflare white-list IP scanner