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>
26 lines
1015 B
Bash
26 lines
1015 B
Bash
#!/system/bin/sh
|
|
export PATH="/data/adb/magisk:/data/adb/box/bin:/system/bin:$PATH"
|
|
echo "=== tt toml ==="
|
|
cat /data/adb/box/sidecar/trusttunnel.toml
|
|
echo
|
|
echo "=== cmdline ==="
|
|
tr '\0' ' ' < /proc/$(pidof trusttunnel_client)/cmdline; echo
|
|
echo "=== sequential socks DoH x5 ==="
|
|
i=1
|
|
while [ $i -le 5 ]; do
|
|
code=$(curl -x socks5://127.0.0.1:10800 -m 8 -sS -o /tmp/doh.json -w "%{http_code}" 'https://1.1.1.1/dns-query?name=example.com&type=A' -H 'accept: application/dns-json' 2>/tmp/doh.err || echo err)
|
|
echo "#$i http=$code $(head -c 80 /tmp/doh.json 2>/dev/null)"
|
|
cat /tmp/doh.err 2>/dev/null | tail -1
|
|
i=$((i+1))
|
|
sleep 1
|
|
done
|
|
echo "=== system sequential ==="
|
|
for h in www.google.com ya.ru github.com; do
|
|
curl -m 12 -sS -o /dev/null -w "$h %{http_code} %{time_total}\n" "https://$h/" || echo "$h fail"
|
|
sleep 1
|
|
done
|
|
echo "=== tt log tail ==="
|
|
tail -20 /data/adb/box/run/sidecar.log
|
|
echo "=== dns strategy now ==="
|
|
yq -o=json '.dns.strategy,.dns.final,.dns.servers' /data/adb/box/sing-box/config.json
|