9 lines
172 B
PHP
9 lines
172 B
PHP
|
<?php
|
||
|
|
||
|
if ($_GET["pass"] == "simplepass") {
|
||
|
echo "Rebooting...";
|
||
|
shell_exec('echo www-data-password | sudo -S /usr/bin/phpreboot');
|
||
|
} else echo "wrong password";
|
||
|
|
||
|
?>
|