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

Function stage3

702/WebRTE/userland.js:249–803  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247}
248
249function stage3() {
250
251 const AF_INET6 = 28;
252 const SOCK_DGRAM = 2;
253 const IPPROTO_UDP = 17;
254 const IPPROTO_IPV6 = 41;
255 const IPV6_TCLASS = 61;
256 const IPV6_2292PKTOPTIONS = 25;
257 const IPV6_RTHDR = 51;
258 const IPV6_PKTINFO = 46;
259
260 const SPRAY_TCLASS = 0x53;
261 const TAINT_CLASS = 0x58;
262 const TCLASS_MASTER = 0x2AFE0000;
263
264 const PKTOPTS_PKTINFO_OFFSET = 0x10;
265 const PKTOPTS_RTHDR_OFFSET = 0x68;
266 const PKTOPTS_TCLASS_OFFSET = 0xB0;
267
268 const PROC_UCRED_OFFSET = 0x40;
269 const PROC_FILEDESC_OFFSET = 0x48;
270 const PROC_PID_OFFSET = 0xB0;
271
272
273 const FILE_FOPS_OFFSET = 0x8;
274 const FILEOPS_IOCTL_OFFSET = 0x18;
275 const VM_MAP_PMAP_OFFSET = 0x120;
276
277 const KERNEL_M_IP6OPT_OFFSET = 0x1A7AEA0;
278 const KERNEL_MALLOC_OFFSET = 0x301840;
279 const KERNEL_ALLPROC_OFFSET = 0x1B48318;
280 const KERNEL_PMAP_STORE_OFFSET = 0x22C5268;
281
282 const NUM_SPRAY_SOCKS = 200;
283 const NUM_LEAK_SOCKS = 200;
284 const NUM_SLAVE_SOCKS = 300;
285
286 const size_of_triggered = 0x8;
287 const size_of_valid_pktopts = 0x18;
288 const size_of_size_of_tclass = 0x8;
289 const size_of_master_main_tclass = 0x8;
290 const size_of_master_thr1_tclass = 0x8;
291 const size_of_master_thr2_tclass = 0x8;
292 const size_of_spray_tclass = 0x8;
293 const size_of_taint_tclass = 0x8;
294 const size_of_tmp_tclass = 0x8;
295 const size_of_rthdr_buffer = 0x800;
296 const size_of_ptr_size_of_rthdr_buffer= 0x8;
297 const size_of_spray_socks = 0x4 * NUM_SPRAY_SOCKS;
298 const size_of_leak_socks = 0x4 * NUM_LEAK_SOCKS;
299 const size_of_slave_socks = 0x4 * NUM_SLAVE_SOCKS;
300 const size_of_spray_socks_tclasses = 0x4 * NUM_SPRAY_SOCKS;
301 const size_of_pktinfo_buffer = 0x18;
302 const size_of_pktinfo_buffer_len = 0x8;
303 const size_of_find_slave_buffer = 0x8 * NUM_SLAVE_SOCKS + 0x10;
304 const size_of_fake_socketops = 0x58;
305 const size_of_loop_counter = 0x8;
306 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