Prevent running kexploit more than once.

This commit is contained in:
Alexander Boulton
2025-05-18 06:55:10 +01:00
committed by GitHub
parent 2641922f6a
commit eb79f766e9
+10 -1
View File
@@ -1663,6 +1663,15 @@ export async function kexploit() {
await init();
const _init_t2 = performance.now();
// If setuid is successful, we dont need to run the kexploit again
try {
if (sysi('setuid', 0) == 0) {
log("Not running kexploit again.")
return;
}
}
catch (e) {}
// fun fact:
// if the first thing you do since boot is run the web browser, WebKit can
// use all the cores
@@ -1752,4 +1761,4 @@ kexploit().then(() => {
payload_loader.addr,
payload_buffer,
);
})
})