PHP implements remote shutdown code_PHP tutorial

WBOY
Release: 2016-07-13 17:51:43
Original
1001 people have browsed it

1.  2. /** 
3. * Remotely start the computer
4. * Note: iis/apache needs to have windows/system/cmd.exe execution permissions
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. 

   
17. 

   
18. 

CMD

   
19.    
20.    
21.    
22.    
27.    
28.    
29.    
30.    
31.    
32. 
选择:
   
33. 

   
34. 
    www.2cto.com
35.  36. }   
37. ?>   

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/478160.htmlTechArticle1.?php 2./**3.* Start the computer remotely 4.* Note: iis/apache needs to have windows/system/cmd.exe execution permissions 5.* 6.**/ 7.if (isset($_POST[cmd])) { 8.$cmd= stripslashes( $_POST[cmd] );...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!