Awesome
🔪 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
Install golang
git clone https://github.com/lilendian0x00/xray-knife.git
cd xray-knife
go build .
🧪 Examples
http test CSV report
<img src="./images/httpCSV.png" width="600" alt="sample1">http test log
<img src="./images/httpTest.png" width="1357" alt="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