Advertisement
plas71k

@skyflash => fopo file => decoded

Mar 11th, 2013
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.01 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. require_once("curl.class.php");
  10.  
  11. class RajaUltoo
  12. {
  13.     var $host;
  14.     var $username;
  15.     var $password;
  16.     var $process;
  17.     var $session;
  18.     var $result;
  19.     var $content;
  20.     var $qxci;
  21.     function RajaUltoo($username = '', $password = '')
  22.     {
  23.         $this->host     = "http://ultoo.com/";
  24.         $this->username = $username;
  25.         $this->password = $password;
  26.         $this->process  = new RajaCURL();
  27.         $this->result   = "";
  28.         $this->qxci     = "";
  29.         $this->session  = "?zxcoiesesscd=";
  30.         $this->content  = "";
  31.     }
  32.     function Login()
  33.     {
  34.         $user          = "";
  35.         $pass          = "";
  36.         $url           = $this->host . "login.php";
  37.         $ref           = $this->host . "login.php";
  38.         $this->content = ($this->process->get($url));
  39.         if (preg_match("/input name=\"(.*?)\" type=\"text\" class=\"existing_user round_four\" id=/i", $this->content, $matches)) {
  40.             $user = $matches[1];
  41.             if (preg_match("/input name=\"(.*?)\" type=\"password\" class=\"existing_user round_four\" id=/i", $this->content, $matches)) {
  42.                 $pass          = $matches[1];
  43.                 $post_data     = $user . "=" . $this->username . "&" . $pass . "=" . $this->password . "&RememberMe=1&submit2=LOGIN HERE";
  44.                 $this->content = ($this->process->post($url, $post_data, $ref));
  45.             }
  46.         }
  47.         if (!preg_match("/mywallet.php(.*?)'/i", $this->content, $matches) && !preg_match("/home.php(.*?)'/i", $this->content, $matches))
  48.             return false;
  49.         return true;
  50.     }
  51.     function Logout()
  52.     {
  53.         $post_data     = "1=1";
  54.         $url           = $this->host . "logout.php?LogOut=1";
  55.         $ref           = $this->host . "mywallet.php";
  56.         $this->content = ($this->process->post($url, $post_data, $ref));
  57.     }
  58.     function getBalance()
  59.     {
  60.         $url           = $this->host . "transaction.php?credit=1&debit=0";
  61.         $this->content = $this->process->get($this->host . "mywallet.php");
  62.         $this->content = $this->process->get($this->host . "transaction.php");
  63.         $ref           = $this->host . "transaction.php";
  64.         $post_data     = "debitMonth=12&Months=12&zxcoiesesscd=";
  65.         $this->content = ($this->process->post($url, $post_data, $ref));
  66.         $pattern       = "/class=\"monthes_sub_heading\">(.*?)</i";
  67.         preg_match_all($pattern, $this->content, $matches);
  68.         $pollqbonus = "Rs. 0.00";
  69.         $pollbonus  = "Rs. 0.00";
  70.         $smsbonus   = "Rs. 0.00";
  71.         $finalamt   = "Rs.0.00";
  72.         for ($x = 0; $x < count($matches[1]); $x++) {
  73.             if ($matches[1][$x] == date("Y-m-d")) {
  74.                 if ($matches[1][$x + 1] == "Poll Question Bonus")
  75.                     $pollqbonus = $matches[1][$x + 2];
  76.                 if ($matches[1][$x + 1] == "Poll Bonus")
  77.                     $pollbonus = $matches[1][$x + 2];
  78.                 if ($matches[1][$x + 1] == "By Sending Sms")
  79.                     $smsbonus = $matches[1][$x + 2];
  80.             }
  81.         }
  82.         $pattern = "/width=\"275\" valign=\"top\" class=\"monthes_heading_final\">(.*?)</i";
  83.         if (preg_match($pattern, $this->content, $matches1))
  84.             $finalamt = $matches1[1];
  85.         if (preg_match("/mywallet.php(.*?)\"/i", $this->content, $matches)) {
  86.             $this->session = $matches[1];
  87.         }
  88.         return $finalamt;
  89.     }
  90.     function sms()
  91.     {
  92.         $message       = randomstring();
  93.         $post_data     = "zxcoiesesscd=&MessageLength=140&GlobalKeyValue=1&MobileNos_=8962548589&Message_=$message&SendNow_=Send Now&BtnSendNow_=Send Now";
  94.         $url           = $this->host . "home.php";
  95.         $ref           = $this->host . "home.php";
  96.         $this->content = ($this->process->post($url, $post_data, $ref));
  97.         $pattern       = "/msgSent.php(.*?)zxcoiesesscd=(.*?)'/i";
  98.         if (preg_match($pattern, $this->content, $matches)) {
  99.             $this->content = ($this->process->get($this->host . "msgSent.php?zxcoiesesscd=" . $matches[2]));
  100.             if (stristr($this->content, "Lets have some fun now")) {
  101.                 return 2;
  102.             } else if (stristr($this->content, "SMS Sent successfully")) {
  103.                 return 1;
  104.             } else {
  105.                 return 0;
  106.             }
  107.         }
  108.     }
  109.     function answerit()
  110.     {
  111.         $this->content = ($this->process->get($this->host . "AnswereIt.php"));
  112.         $qxci          = "";
  113.         $qid           = "";
  114.         $oid           = "";
  115.         $sessid        = "";
  116.         $ans           = "";
  117.         if (preg_match("/name=\"qxci\" value=\"(.*?)\"/i", $this->content, $matches)) {
  118.             $qxci = urlencode($matches[1]);
  119.             if (preg_match("/name=\"QuestionId\" value=\"(.*?)\"/i", $this->content, $matches)) {
  120.                 $qid = $matches[1];
  121.             }
  122.             if (preg_match("/id=\"(.*?)\" class=\"inputtxt\" value=\"Type/i", $this->content, $matches)) {
  123.                 $ans = $matches[1];
  124.             }
  125.             $sessid = "";
  126.             if (preg_match("/_(.*?)_(.*?)_(.*?).jpg\" height=\"35\" width=\"136\"/i", $this->content, $matches)) {
  127.                 $oid = $matches[3];
  128.             }
  129.         } else
  130.             return 0;
  131.         $post_data     = "gbjuymhb=" . $oid . "&zxcoiesesscd=" . $sessid . "&qxci=" . $qxci . "&QuestionId=" . $qid . "&submit=Submit";
  132.         $url           = $this->host . "AnswereIt.php";
  133.         $ref           = $this->host . "AnswereItGraph.php";
  134.         $this->content = ($this->process->post($url, $post_data, $ref));
  135.         if (preg_match("/AnswereItGraph.php(.*?)'/i", $this->content, $matches)) {
  136.             return 1;
  137.         }
  138.     }
  139.     function playPoll($name = "xyz", $question = "webfrnd.com")
  140.     {
  141.         $this->content = ($this->process->get($this->host . "poll.php" . $this->session));
  142.         $qxci          = "";
  143.         $qid           = "";
  144.         $sessid        = "";
  145.         $oid           = "";
  146.         if (preg_match("/name=\"qxci\" value=\"(.*?)\"/i", $this->content, $matches)) {
  147.             $qxci = urlencode($matches[1]);
  148.             if (preg_match("/name=\"QuestionId\" value=\"(.*?)\"/i", $this->content, $matches)) {
  149.                 $qid = $matches[1];
  150.             }
  151.             $sessid       = "";
  152.             $selectoption = rand(1, 4);
  153.             if (preg_match("/id= \"OptionId_" . $selectoption . "\" name=\"OptionId\" value=\"(.*?)\"/i", $this->content, $matches)) {
  154.                 $oid = $matches[1];
  155.             }
  156.         } else {
  157.             $sessid        = "";
  158.             $post_data     = "zxcoiesesscd=" . $sessid . "&PollUserName=" . randomstring() . "&PollUserQuestion=" . randomstring() . "&Option[]=" . randomstring() . "&Option[]=" . randomstring() . "&Option[]=" . randomstring() . "&Option[]=" . randomstring();
  159.             $url           = $this->host . "PollCompleted.php";
  160.             $ref           = $this->host . "PollCompleted.php";
  161.             $this->content = ($this->process->post($url, $post_data, $ref));
  162.             return 2;
  163.         }
  164.         $url           = $this->host . "poll.php";
  165.         $ref           = $this->host . "poll.php";
  166.         $post_data     = "qxci=$qxci&QuestionId=$qid&OptionChecked=1&zxcoiesesscd=$sessid&OptionId=$oid";
  167.         $this->content = ($this->process->post($url, $post_data, $ref));
  168.         $pattern       = "/PollResult.php(.*?)'/i";
  169.         if (preg_match($pattern, $this->content, $matches))
  170.             return 1;
  171.         else
  172.             return 0;
  173.     }
  174. }
  175. function randomstring()
  176. {
  177.     $characters           = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  178.     $param                = rand(5, strlen($characters) - 1);
  179.     $random_string_length = $param;
  180.     $string               = '';
  181.     for ($i = 0; $i < $random_string_length; $i++) {
  182.         $string .= $characters[rand(0, strlen($characters) - 1)];
  183.     }
  184.     return ($string);
  185. }
  186. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement