variousscripts/controlserverwebpage/halt.php

9 lines
180 B
PHP
Raw Normal View History

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