From a4e998d1ace689b5c285f0295843f41f19a3b6b3 Mon Sep 17 00:00:00 2001 From: opa334 Date: Sun, 28 Apr 2024 14:24:32 +0200 Subject: [PATCH] weightBufs: Don't exit on exploit failures --- Application/Dopamine/Exploits/weightBufs/exploit/exploit.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Application/Dopamine/Exploits/weightBufs/exploit/exploit.m b/Application/Dopamine/Exploits/weightBufs/exploit/exploit.m index ad49c7b1f..4ec3e1687 100644 --- a/Application/Dopamine/Exploits/weightBufs/exploit/exploit.m +++ b/Application/Dopamine/Exploits/weightBufs/exploit/exploit.m @@ -988,7 +988,6 @@ struct __attribute__((aligned(8))) _H11ANEProgramBufferParamsStruct if(shm == NULL) { printf("[-] Something went wrong here, if you experience this failure a lot, this means the device is not idle " "and we couldn't shape the memory as expected. It's preferable to reboot the device and try again \n"); - exit(-1); return false; } @@ -1383,7 +1382,7 @@ int exploit(uint64_t *kernelBaseOut) groom_kernel_map(); if(!get_mutk_object()) - exit(-1); + return -1; printf("[+] Stage 3: Dumping a memory page from IOSurface_zone \n"); u64 kaddr = 0;