Files
BFR/tools/which_path.sh
M1rsem 89d0adb27c Release VeilBox v1.11.0: switchable TrustTunnel/olcrtc profiles.
Rename display name to VeilBox, add box.profile + sbfr p switcher, and ship scrubbed sing-box profile templates for quick TT/olcrtc flips.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 20:34:21 +03:00

22 lines
1.4 KiB
Bash

#!/system/bin/sh
export PATH="/data/adb/magisk:/data/adb/box/bin:/system/bin:$PATH"
. /data/adb/box/settings.ini
echo "=== settings ==="
grep -E '^sidecar_' /data/adb/box/settings.ini
echo "=== active sing config ==="
echo "sing_config=$sing_config"
yq -o=json '.route.final, (.outbounds[] | select(.tag=="sidecar-proxy" or .tag=="olcrtc-proxy") | {tag,type,server,server_port})' "$sing_config"
echo "=== processes / ports ==="
echo "tt=$(pidof trusttunnel_client) olc=$(pidof olcrtc) sb=$(pidof sing-box)"
/data/adb/magisk/busybox nc -z 127.0.0.1 10800 && echo 10800_open || echo 10800_closed
/data/adb/magisk/busybox nc -z 127.0.0.1 10801 && echo 10801_open || echo 10801_closed
echo "=== IP via TT socks :10800 ==="
curl -x socks5://127.0.0.1:10800 -m 15 -sS https://1.1.1.1/cdn-cgi/trace 2>/dev/null | grep -E '^(ip|loc|colo|http)=' || echo FAIL_TT
echo "=== IP via olcrtc socks :10801 ==="
curl -x socks5://127.0.0.1:10801 -m 20 -sS https://1.1.1.1/cdn-cgi/trace 2>/dev/null | grep -E '^(ip|loc|colo|http)=' || echo FAIL_OLC
echo "=== IP via SYSTEM (follows route.final) ==="
curl -m 15 -sS https://1.1.1.1/cdn-cgi/trace 2>/dev/null | grep -E '^(ip|loc|colo|http)=' || echo FAIL_SYS
echo "=== olcrtc log (last session lines) ==="
grep -E 'SOCKS5|telemost|session|opened|listening|peer latched' /data/adb/box/run/olcrtc.log 2>/dev/null | tail -15
grep -E 'SOCKS5|telemost|session|opened|listening|peer latched' /data/adb/box/run/sidecar.log 2>/dev/null | tail -10