code wiki / _hdl_build / nx_aw_routerfix.nx
nx_aw_routerfix.nx
buildroot/runtime/_hdl_build/nx_aw_routerfix.nx
about
nx_aw_routerfix.nx -- SOVEREIGN router (GL.iNet/OpenWrt 192.168.8.1) admin for the andelinwest DNS
revert. No shells, no printed secret: retrieves router_password from the sovereign vault
(~/.nishi/nx_vault get vault.key vault.nxv router_password -> captured to a temp fd, in-memory only),
SSHes the router as root via nx_ssh_lib, and runs the command read from a file (so read-only query vs
the actual uci set is driven without rebuilding). ssh_exec streams remote stdout to fd 1.
license_tier: ORIGINAL (spine reused from nx_aw_nasfix)
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_ssh_lib.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
| 10 | const RF_CMD_PATH: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/routercmd.txt" as *u8 |
| 11 | const RF_PW_OUT: *u8 = "/tmp/nxrouter.out" as *u8 |
| 12 | const RF_VAULT_BIN: *u8 = "/home/elderwesto/.nishi/nx_vault" as *u8 |
| 13 | const RF_VAULT_KEY: *u8 = "/home/elderwesto/.nishi/vault.key" as *u8 |
| 14 | const RF_VAULT_NXV: *u8 = "/home/elderwesto/.nishi/vault.nxv" as *u8 |
functions
| 17 | func rf_run_capture(path: *u8, a1: *u8, a2: *u8, a3: *u8, a4: *u8, outfd: i64) -> i64 |
| 38 | func rf_unlink(path: *u8) -> i64 { __syscall(263, AT_FDCWD, path, 0, 0, 0, 0) return 0 } called by 1: main |
| 40 | func main() -> i64 |