Advertisement
plas71k

@Roak84 => FOPO File => decoded

Mar 17th, 2013
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.33 KB | None | 0 0
  1. <?php
  2. /*
  3. * @ Pirate-Sky Crew :: PHP Decoder v2
  4. * @ Author: pLa$71k
  5. * @ Web: http://pirate-sky.com
  6. * @ Pirate-Sky Crew © 2008 - 2013
  7. */
  8.  
  9. set_time_limit(400);
  10. $cookie = tempnam("/tmp", "CURLCOOKIE");
  11. $uid    = isset($_REQUEST["uid"]) ? trim($_REQUEST["uid"]) : "9899999999";
  12. $pwd    = isset($_REQUEST["pwd"]) ? trim($_REQUEST["pwd"]) : "99999";
  13. $start  = 1;
  14. $server = "sms.ultoo.com";
  15. $url    = "$server/login.php";
  16. $url_h  = "$server/home.php";
  17. $url_a  = "$server/AnswereIt.php";
  18. $url_ap = "$server/AnswereItGraph.php";
  19. $agent  = "Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0";
  20. echo "<font color=maroon><b>Script by DIP<br><br></b></font>";
  21. $file   = "ans.txt";
  22. $handle = fopen($file, "r");
  23. $read   = file_get_contents($file);
  24. $lines  = explode(";", $read);
  25. $ch     = curl_init();
  26. curl_setopt($ch, CURLOPT_URL, "$url");
  27. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  28. curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
  29. curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  30.     "Content-Type: application/x-www-form-urlencoded",
  31.     "Accept: */*"
  32. ));
  33. curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  34. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  35. curl_setopt($ch, CURLOPT_REFERER, "$url");
  36. curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  37. $html = curl_exec($ch);
  38. if (preg_match("/input name=\"(.*?)\" type=\"text\" class=\"existing_user round_four\" id=\"(.*?)\"/i", $html, $n)) {
  39.     $usr = $n[1];
  40. } else {
  41.     echo "<font color=red><b>Error occured. Try again<br></b></font>";
  42.     goto error;
  43. }
  44. if (preg_match("/input name=\"(.*?)\" type=\"password\" class=\"existing_user round_four\" id=\"(.*?)\"/i", $html, $n)) {
  45.     $pass = $n[1];
  46. } else {
  47.     echo "<font color=red><b>Error occured. Try again<br></b></font>";
  48.     goto error;
  49. }
  50. $data1 = "Rpidci=&$usr=$uid&$pass=$pwd&RememberMe=1&login_btn=login here";
  51. curl_setopt($ch, CURLOPT_URL, "$url");
  52. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  53. curl_setopt($ch, CURLOPT_ENCODING, "gzip");
  54. curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  55.     "Content-Type: application/x-www-form-urlencoded",
  56.     "Accept: */*"
  57. ));
  58. curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  59. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  60. curl_setopt($ch, CURLOPT_REFERER, "$url");
  61. curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  62. curl_setopt($ch, CURLOPT_POST, 1);
  63. curl_setopt($ch, CURLOPT_POSTFIELDS, "$data1");
  64. $html = curl_exec($ch);
  65. if (!preg_match("/mywallet.php(.*?)'/i", $html) && !preg_match("/home.php(.*?)'/i", $html, $matches)) {
  66.     print "Login Error<br>";
  67. } else {
  68.     while ($start <= 51) {
  69.         curl_setopt($ch, CURLOPT_URL, "$url_a");
  70.         curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  71.         curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
  72.         curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  73.             "Content-Type: application/x-www-form-urlencoded",
  74.             "Accept: */*"
  75.         ));
  76.         curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  77.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  78.         curl_setopt($ch, CURLOPT_REFERER, "$url_a");
  79.         curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  80.         $html = curl_exec($ch);
  81.         if (preg_match("/<p class=\"qtionfont\">Question number:-(.*?)<\/p>/i", $html, $n)) {
  82.             $qno = $n[1];
  83.         } else {
  84.             echo "<font color=red><b>Error occured. Try again<br></b></font>";
  85.             goto error;
  86.         }
  87.         if (preg_match("/name=\"qxci\" value=\"(.*?)\"/i", $html, $matches)) {
  88.             $qxci = urlencode($matches[1]);
  89.         } else {
  90.             echo "<font color=red><b>Error occured. Try again<br></b></font>";
  91.             goto error;
  92.         }
  93.         if (preg_match("/name=\"QuestionId\" value=\"(.*?)\"/i", $html, $matches)) {
  94.             $qid = $matches[1];
  95.         } else {
  96.             echo "<font color=red><b>Error occured. Try again<br></b></font>";
  97.             goto error;
  98.         }
  99.         if (preg_match("/input type=\"text\" name=\"(.*?)\" id=\"(.*?)\" class=\"inputtxt\"/i", $html, $matches)) {
  100.             $ans = $matches[1];
  101.         } else {
  102.             echo "<font color=red><b>Error occured. Try again<br></b></font>";
  103.             goto error;
  104.         }
  105.         $anstxt    = $lines[$qno - 1];
  106.         $post_data = "$ans=$anstxt&zxcoiesesscd=&qxci=$qxci&QuestionId=$qid&submit=Submit";
  107.         curl_setopt($ch, CURLOPT_URL, "$url_a");
  108.         curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  109.         curl_setopt($ch, CURLOPT_ENCODING, "gzip");
  110.         curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  111.             "Content-Type: application/x-www-form-urlencoded",
  112.             "Accept: */*"
  113.         ));
  114.         curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  115.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  116.         curl_setopt($ch, CURLOPT_REFERER, "$url_ap");
  117.         curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  118.         curl_setopt($ch, CURLOPT_POST, 1);
  119.         curl_setopt($ch, CURLOPT_POSTFIELDS, "$post_data");
  120.         $html = curl_exec($ch);
  121.         if (preg_match("/AnswereItGraph.php(.*?)'/i", $html, $matches)) {
  122.             echo "<font color=blue><b>$qno No Quiz Question submitted successfully<br></b></font>";
  123.             $start++;
  124.         } else {
  125.             echo "<font color=red><b>Question not submitted successfully<br></b></font>";
  126.             goto error;
  127.         }
  128.         if ($qno == 50)
  129.             break;
  130.     }
  131. }
  132. flush();
  133. ob_flush();
  134. error:
  135. echo "<hr>";
  136. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement