MCPcopy Create free account
hub / github.com/Cryptogenic/PS5-IPV6-Kernel-Exploit / spawn_thread

Method spawn_thread

document/en/ps5/rop.js:349–356  ·  view source on GitHub ↗

* returns created pthread_t as int64

()

Source from the content-addressed store, hash-verified

347 * returns created pthread_t as int64
348 */
349 async spawn_thread() {
350
351 //add pthread_exit((void*)0x44414544); -> "DEAD"
352 this.fcall(libKernelBase.add32(OFFSET_lk_pthread_exit), 0x44414544);
353
354 await chain.call(libKernelBase.add32(OFFSET_lk_pthread_create_name_np), this.stack_memory.add32(0x48), 0x0, libSceLibcInternalBase.add32(OFFSET_lc_longjmp), this.stack_memory, this.stack_memory.add32(0x50));
355 return p.read8(this.stack_memory.add32(0x48));
356 }
357}

Callers 1

userlandFunction · 0.95

Calls 2

fcallMethod · 0.80
callMethod · 0.80

Tested by

no test coverage detected