Advertisement
plas71k

blogt.php => decoded

May 13th, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.66 KB | None | 0 0
  1. <?php
  2. /*
  3. * @ This file is decoded by pLa$71k
  4. * @ Date: 13 May 2013
  5. * @ Web: http://pirate-sky.com
  6. * @ Pirate-Sky Crew (c) 2008 - 2013
  7. */
  8. ?>
  9. <title>RuleWAP.TK</title>
  10. <h1>I(Garry) am SUper Intelligent. By <a href=http://rulewap.tk>RuleWAP.Tk</a></h1><hr>
  11. <?php
  12. set_time_limit(0);
  13. $cookie = tempnam("/tmp", "CURLCOOKIE");
  14. $uid    = explode(',', $_REQUEST['uid']);
  15. $pwd    = $_REQUEST['pwd'];
  16. $ser    = "www.amulyam.in/";
  17. $url    = "$ser/login.do";
  18. $url_p  = "$ser/playTrivia.do";
  19. $url_a  = "$ser/showTriviaAnswer.do";
  20. $agent  = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
  21.  
  22. for ($i = 0; $i < count($uid); $i++) {
  23.     echo "Account Summary For " . $uid[$i] . "<br>";
  24.     $ch = curl_init();
  25.     curl_setopt($ch, CURLOPT_URL, "$ser");
  26.     curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  27.     curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
  28.     curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  29.         "Content-Type: application/x-www-form-urlencoded",
  30.         "Accept: */*"
  31.     ));
  32.     curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  33.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  34.     curl_setopt($ch, CURLOPT_REFERER, "$ser");
  35.     curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  36.     $html = curl_exec($ch);
  37.    
  38.     $data = "mobile=$uid[$i]&password=$pwd&button=LOGIN";
  39.     curl_setopt($ch, CURLOPT_URL, "$url");
  40.     curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  41.     curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
  42.     curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  43.         "Content-Type: application/x-www-form-urlencoded",
  44.         "Accept: */*"
  45.     ));
  46.     curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  47.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  48.     curl_setopt($ch, CURLOPT_REFERER, "$url");
  49.     curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  50.     curl_setopt($ch, CURLOPT_POST, 1);
  51.     curl_setopt($ch, CURLOPT_POSTFIELDS, "$data");
  52.     $html = curl_exec($ch);
  53.    
  54.     if (preg_match("/Invalid login/i", $html, $matches)) {
  55.         echo "<font color=red><b>Login Error</b></font>";
  56.     } else {
  57.         echo "<font color=green><b>Amulyam Trivia Game<br><br></b></font>";
  58.        
  59.         curl_setopt($ch, CURLOPT_URL, "$url_p");
  60.         curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  61.         curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
  62.         curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  63.             "Content-Type: application/x-www-form-urlencoded",
  64.             "Accept: */*"
  65.         ));
  66.         curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  67.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  68.         curl_setopt($ch, CURLOPT_REFERER, "$url_p");
  69.         curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  70.         $html = curl_exec($ch);
  71.        
  72.         if (preg_match_all("/<p class=\"trivia-question pink\"><span class=\"pink\">(.*?)<\/span><\/p>/i", $html, $n)) {
  73.             $qs = $n[1];
  74.             $qs = implode($qs);
  75.         }
  76.         if (preg_match_all("/input type=\"hidden\" name=\"cp\" value=\"(.*?)\"/i", $html, $n)) {
  77.             $qno = $n[1];
  78.             $qno = implode($qno);
  79.         }
  80.        
  81.         while ($qno <= 25) {
  82.            
  83.             $data = "cp=$qno&answer=TRUE";
  84.             curl_setopt($ch, CURLOPT_URL, "$url_a");
  85.             curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  86.             curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
  87.             curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  88.                 "Content-Type: application/x-www-form-urlencoded",
  89.                 "Accept: */*"
  90.             ));
  91.             curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  92.             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  93.             curl_setopt($ch, CURLOPT_REFERER, "$url_a");
  94.             curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  95.             curl_setopt($ch, CURLOPT_POST, 1);
  96.             curl_setopt($ch, CURLOPT_POSTFIELDS, "$data");
  97.             $html = curl_exec($ch);
  98.            
  99.             if (preg_match_all("/<h5 class=\"pink\">(.*?)<\/h5>/i", $html, $n)) {
  100.                 $res = $n[1];
  101.                 $res = implode($res);
  102.             }
  103.             echo "<font color=green><b><font color=blue><font color=maroon>Question No: $qno. </font>$qs </font>($res) </b><br></font>";
  104.            
  105.             if ($qno == 25) {
  106.                 echo "<font color=blue><b><font color=red>To get 50 paisa visit the following page now </font> http://www.amulyam.in/playTrivia.do</b><br></font>";
  107.                 echo "<a href=\"http://www.amulyam.in/playTrivia.do\">Click here</a>";
  108.                 break;
  109.             } else {
  110.                 curl_setopt($ch, CURLOPT_URL, "$url_p");
  111.                 curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  112.                 curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
  113.                 curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  114.                     "Content-Type: application/x-www-form-urlencoded",
  115.                     "Accept: */*"
  116.                 ));
  117.                 curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  118.                 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  119.                 curl_setopt($ch, CURLOPT_REFERER, "$url_p");
  120.                 curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  121.                 $html = curl_exec($ch);
  122.                
  123.                 if (preg_match_all("/<p class=\"trivia-question pink\"><span class=\"pink\">(.*?)<\/span><\/p>/i", $html, $n)) {
  124.                     $qs = $n[1];
  125.                     $qs = implode($qs);
  126.                 }
  127.                 if (preg_match_all("/input type=\"hidden\" name=\"cp\" value=\"(.*?)\"/i", $html, $n)) {
  128.                     $qno = $n[1];
  129.                     $qno = implode($qno);
  130.                 }
  131.             }
  132.         }
  133.     }
  134. }
  135. flush();
  136. ob_flush();
  137. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement