Php implements remote shutdown code. 1 .? Php2. ** 3. * start the computer remotely. 4. * Note: iisapache.exe has windowssystemcmd.exe execution permission. 5.*6. ** 7.if( isset ($ _ POST [cmd]) {8. $ define stripslashes ($ _ POST [cmd]); 1. 2 ./**
3. * remotely start the computer
4. * Note: iis/apache requires windows/system/cmd.exe execution permission.
5 .*
6 .**/
7. if (isset ($ _ POST ['cmd']) {
8. $ cmd = stripslashes ($ _ POST ['cmd']);
9. exec ($ cmd, $ out );
10. var_dump ($ out );
11. echo'
';
12. var_dump ($ cmd );
13.} else {
14.?>
15.
16. www.2cto.com
35. 36 .}
37.?>
Http://www.bkjia.com/PHPjc/478160.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/478160.htmlTechArticle1 .? Php 2. /** 3. * start the computer remotely. 4. * Note: iis/apache requires windows/system/cmd.exe execution permission. 5.*6. **/7.if (isset ($ _ POST [cmd]) {8. $ cmd = stripslashes ($ _ POST [cmd]);...