summaryrefslogtreecommitdiff
path: root/scripts/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test.c')
-rw-r--r--scripts/test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/test.c b/scripts/test.c
new file mode 100644
index 0000000..00f1704
--- /dev/null
+++ b/scripts/test.c
@@ -0,0 +1,9 @@
+#include<stdio.h>
+
+int main(int argc, char *argv[])
+{
+ setuid(0);
+ setgid(0);
+
+ execv("whoami", argv);
+}