MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / stage3

Function stage3

702/BinLoader/userland.js:297–853  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

295}
296
297function stage3() {
298
299 const AF_INET6 = 28;
300 const SOCK_DGRAM = 2;
301 const IPPROTO_UDP = 17;
302 const IPPROTO_IPV6 = 41;
303 const IPV6_TCLASS = 61;
304 const IPV6_2292PKTOPTIONS = 25;
305 const IPV6_RTHDR = 51;
306 const IPV6_PKTINFO = 46;
307
308 const SPRAY_TCLASS = 0x53;
309 const TAINT_CLASS = 0x58;
310 const TCLASS_MASTER = 0x2AFE0000;
311
312 const PKTOPTS_PKTINFO_OFFSET = 0x10;
313 const PKTOPTS_RTHDR_OFFSET = 0x68;
314 const PKTOPTS_TCLASS_OFFSET = 0xB0;
315
316 const PROC_UCRED_OFFSET = 0x40;
317 const PROC_FILEDESC_OFFSET = 0x48;
318 const PROC_PID_OFFSET = 0xB0;
319
320
321 const FILE_FOPS_OFFSET = 0x8;
322 const FILEOPS_IOCTL_OFFSET = 0x18;
323 const VM_MAP_PMAP_OFFSET = 0x120;
324
325 const KERNEL_M_IP6OPT_OFFSET = 0x1A7AEA0;
326 const KERNEL_MALLOC_OFFSET = 0x301840;
327 const KERNEL_ALLPROC_OFFSET = 0x1B48318;
328 const KERNEL_PMAP_STORE_OFFSET = 0x22C5268;
329
330 const NUM_SPRAY_SOCKS = 200;
331 const NUM_LEAK_SOCKS = 200;
332 const NUM_SLAVE_SOCKS = 300;
333
334 const size_of_triggered = 0x8;
335 const size_of_valid_pktopts = 0x18;
336 const size_of_size_of_tclass = 0x8;
337 const size_of_master_main_tclass = 0x8;
338 const size_of_master_thr1_tclass = 0x8;
339 const size_of_master_thr2_tclass = 0x8;
340 const size_of_spray_tclass = 0x8;
341 const size_of_taint_tclass = 0x8;
342 const size_of_tmp_tclass = 0x8;
343 const size_of_rthdr_buffer = 0x800;
344 const size_of_ptr_size_of_rthdr_buffer= 0x8;
345 const size_of_spray_socks = 0x4 * NUM_SPRAY_SOCKS;
346 const size_of_leak_socks = 0x4 * NUM_LEAK_SOCKS;
347 const size_of_slave_socks = 0x4 * NUM_SLAVE_SOCKS;
348 const size_of_spray_socks_tclasses = 0x4 * NUM_SPRAY_SOCKS;
349 const size_of_pktinfo_buffer = 0x18;
350 const size_of_pktinfo_buffer_len = 0x8;
351 const size_of_find_slave_buffer = 0x8 * NUM_SLAVE_SOCKS + 0x10;
352 const size_of_fake_socketops = 0x58;
353 const size_of_loop_counter = 0x8;
354 const size_of_fix_these_sockets = 0x4 * (NUM_SPRAY_SOCKS + NUM_LEAK_SOCKS + NUM_SLAVE_SOCKS + 0x2) + 0x18;

Callers 1

stage2Function · 0.70

Calls 13

find_socket_overlapFunction · 0.70
fake_pktoptsFunction · 0.70
leak_pktoptsFunction · 0.70
find_slaveFunction · 0.70
brute_force_kernel_mapFunction · 0.70
find_procFunction · 0.70
kernel_read8Function · 0.70
kernel_write8Function · 0.70
find_execution_socketFunction · 0.70
write8Method · 0.45
syscallMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected