nx_ff_cookies.nx
buildroot/runtime/nx_ff_cookies.nx
about
nx_ff_cookies.nx -- SOVEREIGN Firefox/Waterfox cookies.sqlite reader (X-TORRENT-SPOOF R1).
WHY: javdb/livecamrips are Cloudflare-walled (403). To fetch them we reuse the operator's existing
browser session -- the cf_clearance (+ site session) cookie that their browser already earned.
Waterfox/Firefox store cookies UNENCRYPTED in cookies.sqlite, so a sovereign organ can read them
directly (Chrome's are DPAPI-encrypted -> not us). This parses the SQLite file format itself (no
external sqlite lib): scan every table-leaf page, decode each record, emit name=value where the
host column matches the target domain. moz_cookies column order: 0=id 1=originAttributes 2=name
3=value 4=host 5=path ... -> name=col2, value=col3, host=col4.
argv[1]=cookies.sqlite path argv[2]=domain substring (e.g. "javdb") -> prints "name=value | host"
v1: main DB only (not -wal). license_tier: ORIGINAL module: nishi-core.browser.ff_cookies
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_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
| 13 | const K_MAGIC_16777216: i64 = 16777216 |
| 14 | const K_MAGIC_65536: i64 = 65536 |
| 15 | const K_MAGIC_4096: i64 = 4096 |
functions
| 17 | func ff_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 22 | func ff_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 23 | func ff_wbuf(fd: i64, buf: *u8, off: i64, len: i64) -> i64 { sys_write(fd, (buf as i64 + off) as *u8, len); return 0 } |
| 26 | func sq_varint(buf: *u8, pos: *i64) -> i64 called by 1: main |
| 37 | func sq_be(buf: *u8, off: i64, len: i64) -> i64 { var v: i64=0; var i: i64=0; while i<len { v=(v<<8)|(buf[off+i] as i64); i=i+1 } return v } called by 1: main |
| 39 | func sq_contains(buf: *u8, off: i64, len: i64, needle: *u8) -> i64 called by 1: main |
| 47 | func sq_collen(st: i64) -> i64 called by 1: main |
| 54 | func main(argc: i64, argv: *i64) -> i64 |