init from 4 old repositories
This commit is contained in:
10
controlserverwebpage/usr/bin/phphalt.c
Normal file
10
controlserverwebpage/usr/bin/phphalt.c
Normal 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;
|
||||
}
|
||||
10
controlserverwebpage/usr/bin/phpreboot.c
Normal file
10
controlserverwebpage/usr/bin/phpreboot.c
Normal 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;
|
||||
}
|
||||
7
controlserverwebpage/usr/bin/stmnt.sh
Executable file
7
controlserverwebpage/usr/bin/stmnt.sh
Executable 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
|
||||
Reference in New Issue
Block a user