nx_torrent_live_probe.nx
buildroot/runtime/nx_torrent_live_probe.nx
about
nx_torrent_live_probe.nx -- sovereign machine-proof that /torrent is LIVE on nishifamily.com.
Connects over real TLS 1.3 to the production web server (192.168.8.240:8443) presenting SNI
"nishifamily.com", VALIDATES the server cert against the Mozilla CA trust store (the real Let's
Encrypt chain), then GETs /torrent with NO session header. The expected response is the OPAQUE
gateway's no-cookie BOOTSTRAP -- which proves the full external relay end-to-end:
TLS :8443 (sites.elf) -> /torrent route -> gateway :18793 (loopback) -> bootstrap
A real session lives only in the browser's sessionStorage, so an unauthenticated probe MUST see the
bootstrap (contains "Nishi Media" + "X-Nishi-Session" + "sessionStorage"), NOT the 13KB daemon UI
(that would mean the gateway was bypassed) and NOT a /login 302 (that would mean an invalid token).
usage: nx_torrent_live_probe (no args; target + CA bundle are fixed)
license_tier: ORIGINAL
dependencies 9 imports · 0 importers
imports: nx_syscalls.nxnx_csprng.nxnx_connect.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_tls13_client_validate_certificate.nxnx_tls13_client_session_run.nxnx_https_get_complete.nxnx_http_response_parse.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 22 | const K_MAGIC_4194304: i64 = 4194304 |
| 23 | const K_MAGIC_8443: i64 = 8443 |
| 24 | const K_MAGIC_131072: i64 = 131072 |
| 25 | const K_MAGIC_2000: i64 = 2000 |
functions
| 27 | func pw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return sys_write(1, s, n) } |
| 28 | func pn(v: i64) -> i64 |
| 36 | func contains(hay: *u8, hn: i64, needle: *u8) -> i64 called by 1: main |
| 49 | func main(argc: i64, argv: *i64) -> i64 |