xray-knife

command module
v0.0.0-...-a0c44de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 1 Imported by: 0

README

xray-knife

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

I DEDICATE THIS TOOL TO MY DEAR PERSIAN PEOPLE.

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

Description

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 .

Screenshots

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://...)
  • 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 best IP finder (whitelist scanner)
  • Xray REALITY scanner (TLS, H2)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
net

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL