variousscripts/controlserverwebpage/reboot.php

9 lines
172 B
PHP
Raw Permalink Normal View History

2019-08-05 13:07:57 +00:00
<?php
if ($_GET["pass"] == "simplepass") {
echo "Rebooting...";
shell_exec('echo www-data-password | sudo -S /usr/bin/phpreboot');
} else echo "wrong password";
?>