1761206468

This commit is contained in:
2025-10-23 02:01:08 -06:00
parent 219e53b3d8
commit b48028b96b
7 changed files with 0 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
// Drop privileges before running the command
setuid(getuid());
// Pass all arguments to the target command
execvp(argv[1], &argv[1]);
// This is only reached if execvp fails
perror("execvp");
return 1;
}