code wiki / _hdl_build / nx_aw_routerfix.nx

nx_aw_routerfix.nx

buildroot/runtime/_hdl_build/nx_aw_routerfix.nx

3928 B70 linesdepth 10pulls 22 transitivereach 0 importersview sourcekind tooltopic aw
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_ssh_lib.nx nx_aw_routerfix.nx

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

main sys_openat_wr ssh_puts sys_write rf_run_capture sys_fork sys_dup3 sys_mmap sys_execve sys_exit sys_wait4 sys_close rf_unlink sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ ssh_open_session sys_socket sys_mmap ↻ ssh_sockaddr nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll ssh_kex sys_write ↻ sys_mmap ↻ ssh_read_line sys_read ↻ ssh_read_packet sys_mmap ↻ ssh_read_full sys_read ↻ ssh_u32be ssh_put_bytes

structs

none

consts

10const RF_CMD_PATH: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/routercmd.txt" as *u8
11const RF_PW_OUT: *u8 = "/tmp/nxrouter.out" as *u8
12const RF_VAULT_BIN: *u8 = "/home/elderwesto/.nishi/nx_vault" as *u8
13const RF_VAULT_KEY: *u8 = "/home/elderwesto/.nishi/vault.key" as *u8
14const RF_VAULT_NXV: *u8 = "/home/elderwesto/.nishi/vault.nxv" as *u8

functions

17func rf_run_capture(path: *u8, a1: *u8, a2: *u8, a3: *u8, a4: *u8, outfd: i64) -> i64
40func main() -> i64