diff --git a/src/exploit.c b/src/exploit.c index 2edd093..cd71833 100644 --- a/src/exploit.c +++ b/src/exploit.c @@ -63,7 +63,7 @@ void runAndClean(char * const env[], char * const arg[]) { else { int status; waitpid(pid, &status, 0); - if (WEXITSTATUS(status) == 126) { + if (WEXITSTATUS(status) == 127 || WEXITSTATUS(status) == 1) { print("[Pwnkit] Failed to execute pkexec, or it returned an error; your system is most likely patched!"); } print("[Pwnkit] Cleaning up..");