<?php
/**
* Remote boot computer
* Note: Iis/apache needs Windows/system/cmd.exe Execute permissions
* Name: Shirufe
* qq:6706250
* E-mail:xuerufei@163.com
* blog:http://hi.baidu.com/Feiyun Cover Day
* 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 Act ion= "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= "18" > Selection: </td>
<td width= "109" ><select name= "cmd"
<option value= "Shutdown-r" Selected > Restart the computer </option>
<option value= "Shutdown-s" > Turn off the computer </option>
<option value= " Shutdown-l > Unregister the current user </option>
</selecT></td>
</tr>
<tr>
<td> </td>
<td><input type= "Submit" name = "Submit" value= "submitted"/></td>
</tr>
</table>
<p> </p>
</form>
<?php
}
?