XRAT
Rust CLI/TUI that imports proxy subscriptions, tests them, and manages local connections.
Tested on LinuxKnown vulnerabilities
Use it
Before you install: known vulnerabilities
pickfit found 13 known high or critical vulnerabilities in the packages a fresh install brings (OSV.dev, 3 Nov 2026). Weigh this before you install it.
crates:zip 7.2.0zip: Critical Parser Differential & Security Control Bypass via Dual-Header Inconsistencies (Zip Cloaking) Leading to Arbitrary File Overwrite & RCE (GHSA-m665-v7pm-7grj, critical, fixed in 9.0.5)crates:hickory-proto 0.25.2hickory-proto: NSEC3 closest-encloser proof validation enters unbounded loop on cross-zone responses (GHSA-3v94-mw7p-v465, high, no fix yet)
See 8 more
crates:zip 7.2.0— RUSTSEC-2026-0369 (critical), fixed in 9.0.0crates:pulldown-cmark 0.13.4— RUSTSEC-2026-0414 (high), fixed in 0.13.5crates:pulldown-cmark 0.13.4— RUSTSEC-2026-0433 (high), fixed in 0.13.6crates:quick-xml 0.37.5— RUSTSEC-2026-0194 (high), fixed in 0.41.0crates:quick-xml 0.37.5— RUSTSEC-2026-0195 (high), fixed in 0.41.0crates:quinn-proto 0.11.14— GHSA-4w2j-m93h-cj5j (high), fixed in 0.11.15crates:quinn-proto 0.11.14— RUSTSEC-2026-0340 (high), fixed in 0.11.18crates:zip 7.2.0— GHSA-9hj8-73fh-9963 (high), fixed in 9.0.0
3 more findings not listed here.
Linux x86_64
download install script
curl -fsSL https://raw.githubusercontent.com/mhyrzt/xrat/master/install.sh -o /tmp/install.shinstall xrat via script --yes --no-desktop
bash /tmp/install.sh --yes --no-desktop
Check that it works
xrat --versionThe output should contain “xrat 0.34.0”.
First thing to try
cat > /tmp/links.txt <<'EOF'
vless://00000000-0000-0000-0000-000000000001@127.0.0.1:443?security=tls#TestVLESS
vmess://eyJhZGQiOiIxMjcuMC4wLjEiLCJhaWQiOiIwIiwiaG9zdCI6IiIsImlkIjoiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAyIiwibmV0Ijoid3MiLCJwYXRoIjoiLyIsInBvcnQiOiI0NDMiLCJwcyI6IlRlc3RWbWVzcyIsInNjaSI6ImF1dG8iLCJzbmkiOiIiLCJ0bHMiOiJ0bHMiLCJ0eXBlIjoibm9uZSIsInYiOiIyIn0=
trojan://password@127.0.0.1:443#TestTrojan
EOF
cat /tmp/links.txtxrat import /tmp/links.txtRun xrat import <file> to load your proxy subscription links.
What it does
- Import proxy subscriptionsTested
How to use it
- Save your proxy links (vless, vmess, trojan) in a text file, one per line.
- Run
xrat import <file>to import them.
- Test proxy latencyTested
How to use it
- Import your subscriptions first.
- Run
xrat testto test the imported proxies and see their status.
- Scan edge IPsTested
How to use it
- Run
xrat scan --ips <ip> --port <port>to check which IPs are reachable and save the results.
- Run
- Rotate proxiesNot tested
How far pickfit got
Linux x86_64
- Installs
- Starts
- 3 of 4 features work
- Works offline
macOS: the project says it runs there; pickfit hasn’t tried it.
Good for
- import proxy subscriptions from URL or file
- test subscription configs and sort by latency
- rotate running proxy connection
- scan candidate edge IPs for reachability
- run managed local SOCKS proxy session
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
Its main function works
- Replayed from scratch
- Works offline
- Checked on 1 Nov 2026
- Version 0.34.0
Differences the test machine hit
- README: curl -fsSL https://raw.githubusercontent.com/mhyrzt/xrat/master/install.sh | bash
In the test: Download script first, then bash /tmp/install.sh --yes --no-desktop to avoid interactive prompts and desktop integration in headless sandbox - README: xrat status shows managed proxy runtime
In the test: xrat status requires daemon; setup reports daemon unavailable without systemd: exits 1 with 'daemon is not running' - README: xrat rotate controls rotation
In the test: rotate subcommands require daemon; xrat rotate status fails without daemon