Copy Code code as follows:
<?php
/**
* Remote boot computer
* Note: Iis/apache needs to have windows/system/cmd.exe execution privileges
* Name: Shirufe
* qq:6706250
* e-mail:xuerufei@163.com
* date:08.08.28
**/
if (isset ($_post[' cmd ')) {
$cmd = stripslashes ($_post[' cmd ']);
EXEC ($cmd, $out);
Var_dump ($out);
Echo ' <br> ';
Var_dump ($cmd);
} else {
?>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<form action= "index.php" method= "post" name= "Form0" id= "Form0" >
<p> </p>
<p align= "center" >CMD</p>
<table width= border= "0" align= "center" >
<tr>
<TD width= "Bayi" height= "Yi" > Choose:</td>
<TD width= "109" ><select name= "cmd" >
<option value= "Shutdown-r" selected= "selected" > Restart computer </option>
<option value= "Shutdown-s" > Shutdown computer </option>
<option value= "Shutdown-l" > Unregister current User </option>
</select></td>
</tr>
<tr>
<td> </td>
<td><input type= "Submit" name= "Submission" value= "submitted"/></td>
</tr>
</table>
<p> </p>
</form>
<?php
}
?>
See I use PHP code to implement remote shutdown