Merge pull request #12 from JTAG7371/patch-1
Prevent running kexploit more than once.
This commit is contained in:
@@ -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,
|
||||
);
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user