Today's company task ..
Catch most kindergartens in China...
So I wrote a crawler ....
... In the afternoon, I am about to get off work... data has not been crawled ..
Worried... what can I do...
I accidentally found it on Google... PHP can actually control the computer to shut down and restart... I can also log out, but I didn't test it successfully...
Strong is really strong ....
Not to mention...Code
<? Php </P> <p> If (isset ($ _ post ['cmd']) <br/>{< br/> $ cmd = stripslashes ($ _ post ['cmd']); <br/> exec ($ cmd, $ out ); <br/> var_dump ($ out); <br/> echo '<br>'; <br/> var_dump ($ cmd ); <br/>}else <br/>{< br/>?> <Br/> <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/> <br/> <form action = "shutdown. PHP "method =" Post "name =" form0 "id =" form0 "> <br/> <p> </P> <br/> <p align =" center"> CMD </P> <br/> <Table width = "200" border = "0" align = "center"> <br/> <tr> <br/> <TD width = "81" Height = "18"> select: </TD> <br/> <TD width = "109"> <select name = "cmd"> <br/> <option value = "shutdown-R" selected =" selected "> restart the computer </opti On> <br/> <option value = "shutdown-s"> disable the computer </option> <br/> <option value = "shutdown-L"> cancel the current user </option> <br/> </SELECT> </TD> <br/> </tr> <br/> <TD> </TD> <br/> <TD> <input type = "Submit" name = "Submit" value = "Submit"/> </TD> <br/> </tr> <br/> </table> <br/> <p> </P> <br/> </form> <br/> <? <Br/>}< br/>?>