init from 4 old repositories
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main() {
|
||||
setuid(0);
|
||||
char *command = "/sbin/shutdown";
|
||||
execl(command, command, NULL);
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main() {
|
||||
setuid(0);
|
||||
char *command = "/sbin/reboot";
|
||||
execl(command, command, NULL);
|
||||
return 0;
|
||||
}
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo www-data-password | sudo -S veracrypt -t -v --non-interactive --mount /tmp/crypt_container.dat /media/veracrypt/ -p $1
|
||||
sleep 1
|
||||
echo www-data-password | sudo -S echo "there some another command"
|
||||
|
||||
exit
|
||||
Reference in New Issue
Block a user