code wiki / (root) / nx_ff_cookies.nx

nx_ff_cookies.nx

buildroot/runtime/nx_ff_cookies.nx

7178 B128 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_itoa_lib.nx nx_ff_cookies.nx

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

main ff_w sys_write sys_exit sys_openat_rd sys_mmap sys_read sys_close sq_be ff_wn nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap sq_varint sq_collen sq_contains ff_wbuf sys_write ↻

structs

none

consts

13const K_MAGIC_16777216: i64 = 16777216
14const K_MAGIC_65536: i64 = 65536
15const K_MAGIC_4096: i64 = 4096

functions

17func 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 }
called by 1: main calls 1: sys_write
22func ff_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 1: main calls 1: nxi_fd
23func ff_wbuf(fd: i64, buf: *u8, off: i64, len: i64) -> i64 { sys_write(fd, (buf as i64 + off) as *u8, len); return 0 }
called by 1: main calls 1: sys_write
26func sq_varint(buf: *u8, pos: *i64) -> i64
called by 1: main
37func 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
39func sq_contains(buf: *u8, off: i64, len: i64, needle: *u8) -> i64
called by 1: main
47func sq_collen(st: i64) -> i64
called by 1: main
54func main(argc: i64, argv: *i64) -> i64