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