init from 4 old repositories

This commit is contained in:
2019-08-05 16:07:57 +03:00
parent c750e17675
commit fa1425a67b
20 changed files with 378 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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