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

Function find_proc

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

Source from the content-addressed store, hash-verified

685 }
686
687 function find_proc() {
688 var proc = kernel_read8(kernel_base.add32(KERNEL_ALLPROC_OFFSET));
689 while (proc.low != 0) {
690 var pid = kernel_read8(proc.add32(PROC_PID_OFFSET));
691 if (pid.low == this_pid) {
692 return proc;
693 }
694 proc = kernel_read8(proc);
695 }
696 alert("[ERROR] failed to find proc REBOOT");
697 while (1) {};
698 }
699
700 function find_execution_socket() {
701

Callers 1

stage3Function · 0.70

Calls 1

kernel_read8Function · 0.70

Tested by

no test coverage detected