Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * @ Pirate-Sky Crew :: PHP Decoder v2
- * @ Author: pLa$71k
- * @ Web: http://pirate-sky.com
- * @ Pirate-Sky Crew © 2008 - 2013
- */
- require_once("curl.class.php");
- class RajaUltoo
- {
- var $host;
- var $username;
- var $password;
- var $process;
- var $session;
- var $result;
- var $content;
- var $qxci;
- function RajaUltoo($username = '', $password = '')
- {
- $this->host = "http://ultoo.com/";
- $this->username = $username;
- $this->password = $password;
- $this->process = new RajaCURL();
- $this->result = "";
- $this->qxci = "";
- $this->session = "?zxcoiesesscd=";
- $this->content = "";
- }
- function Login()
- {
- $user = "";
- $pass = "";
- $url = $this->host . "login.php";
- $ref = $this->host . "login.php";
- $this->content = ($this->process->get($url));
- if (preg_match("/input name=\"(.*?)\" type=\"text\" class=\"existing_user round_four\" id=/i", $this->content, $matches)) {
- $user = $matches[1];
- if (preg_match("/input name=\"(.*?)\" type=\"password\" class=\"existing_user round_four\" id=/i", $this->content, $matches)) {
- $pass = $matches[1];
- $post_data = $user . "=" . $this->username . "&" . $pass . "=" . $this->password . "&RememberMe=1&submit2=LOGIN HERE";
- $this->content = ($this->process->post($url, $post_data, $ref));
- }
- }
- if (!preg_match("/mywallet.php(.*?)'/i", $this->content, $matches) && !preg_match("/home.php(.*?)'/i", $this->content, $matches))
- return false;
- return true;
- }
- function Logout()
- {
- $post_data = "1=1";
- $url = $this->host . "logout.php?LogOut=1";
- $ref = $this->host . "mywallet.php";
- $this->content = ($this->process->post($url, $post_data, $ref));
- }
- function getBalance()
- {
- $url = $this->host . "transaction.php?credit=1&debit=0";
- $this->content = $this->process->get($this->host . "mywallet.php");
- $this->content = $this->process->get($this->host . "transaction.php");
- $ref = $this->host . "transaction.php";
- $post_data = "debitMonth=12&Months=12&zxcoiesesscd=";
- $this->content = ($this->process->post($url, $post_data, $ref));
- $pattern = "/class=\"monthes_sub_heading\">(.*?)</i";
- preg_match_all($pattern, $this->content, $matches);
- $pollqbonus = "Rs. 0.00";
- $pollbonus = "Rs. 0.00";
- $smsbonus = "Rs. 0.00";
- $finalamt = "Rs.0.00";
- for ($x = 0; $x < count($matches[1]); $x++) {
- if ($matches[1][$x] == date("Y-m-d")) {
- if ($matches[1][$x + 1] == "Poll Question Bonus")
- $pollqbonus = $matches[1][$x + 2];
- if ($matches[1][$x + 1] == "Poll Bonus")
- $pollbonus = $matches[1][$x + 2];
- if ($matches[1][$x + 1] == "By Sending Sms")
- $smsbonus = $matches[1][$x + 2];
- }
- }
- $pattern = "/width=\"275\" valign=\"top\" class=\"monthes_heading_final\">(.*?)</i";
- if (preg_match($pattern, $this->content, $matches1))
- $finalamt = $matches1[1];
- if (preg_match("/mywallet.php(.*?)\"/i", $this->content, $matches)) {
- $this->session = $matches[1];
- }
- return $finalamt;
- }
- function sms()
- {
- $message = randomstring();
- $post_data = "zxcoiesesscd=&MessageLength=140&GlobalKeyValue=1&MobileNos_=8962548589&Message_=$message&SendNow_=Send Now&BtnSendNow_=Send Now";
- $url = $this->host . "home.php";
- $ref = $this->host . "home.php";
- $this->content = ($this->process->post($url, $post_data, $ref));
- $pattern = "/msgSent.php(.*?)zxcoiesesscd=(.*?)'/i";
- if (preg_match($pattern, $this->content, $matches)) {
- $this->content = ($this->process->get($this->host . "msgSent.php?zxcoiesesscd=" . $matches[2]));
- if (stristr($this->content, "Lets have some fun now")) {
- return 2;
- } else if (stristr($this->content, "SMS Sent successfully")) {
- return 1;
- } else {
- return 0;
- }
- }
- }
- function answerit()
- {
- $this->content = ($this->process->get($this->host . "AnswereIt.php"));
- $qxci = "";
- $qid = "";
- $oid = "";
- $sessid = "";
- $ans = "";
- if (preg_match("/name=\"qxci\" value=\"(.*?)\"/i", $this->content, $matches)) {
- $qxci = urlencode($matches[1]);
- if (preg_match("/name=\"QuestionId\" value=\"(.*?)\"/i", $this->content, $matches)) {
- $qid = $matches[1];
- }
- if (preg_match("/id=\"(.*?)\" class=\"inputtxt\" value=\"Type/i", $this->content, $matches)) {
- $ans = $matches[1];
- }
- $sessid = "";
- if (preg_match("/_(.*?)_(.*?)_(.*?).jpg\" height=\"35\" width=\"136\"/i", $this->content, $matches)) {
- $oid = $matches[3];
- }
- } else
- return 0;
- $post_data = "gbjuymhb=" . $oid . "&zxcoiesesscd=" . $sessid . "&qxci=" . $qxci . "&QuestionId=" . $qid . "&submit=Submit";
- $url = $this->host . "AnswereIt.php";
- $ref = $this->host . "AnswereItGraph.php";
- $this->content = ($this->process->post($url, $post_data, $ref));
- if (preg_match("/AnswereItGraph.php(.*?)'/i", $this->content, $matches)) {
- return 1;
- }
- }
- function playPoll($name = "xyz", $question = "webfrnd.com")
- {
- $this->content = ($this->process->get($this->host . "poll.php" . $this->session));
- $qxci = "";
- $qid = "";
- $sessid = "";
- $oid = "";
- if (preg_match("/name=\"qxci\" value=\"(.*?)\"/i", $this->content, $matches)) {
- $qxci = urlencode($matches[1]);
- if (preg_match("/name=\"QuestionId\" value=\"(.*?)\"/i", $this->content, $matches)) {
- $qid = $matches[1];
- }
- $sessid = "";
- $selectoption = rand(1, 4);
- if (preg_match("/id= \"OptionId_" . $selectoption . "\" name=\"OptionId\" value=\"(.*?)\"/i", $this->content, $matches)) {
- $oid = $matches[1];
- }
- } else {
- $sessid = "";
- $post_data = "zxcoiesesscd=" . $sessid . "&PollUserName=" . randomstring() . "&PollUserQuestion=" . randomstring() . "&Option[]=" . randomstring() . "&Option[]=" . randomstring() . "&Option[]=" . randomstring() . "&Option[]=" . randomstring();
- $url = $this->host . "PollCompleted.php";
- $ref = $this->host . "PollCompleted.php";
- $this->content = ($this->process->post($url, $post_data, $ref));
- return 2;
- }
- $url = $this->host . "poll.php";
- $ref = $this->host . "poll.php";
- $post_data = "qxci=$qxci&QuestionId=$qid&OptionChecked=1&zxcoiesesscd=$sessid&OptionId=$oid";
- $this->content = ($this->process->post($url, $post_data, $ref));
- $pattern = "/PollResult.php(.*?)'/i";
- if (preg_match($pattern, $this->content, $matches))
- return 1;
- else
- return 0;
- }
- }
- function randomstring()
- {
- $characters = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
- $param = rand(5, strlen($characters) - 1);
- $random_string_length = $param;
- $string = '';
- for ($i = 0; $i < $random_string_length; $i++) {
- $string .= $characters[rand(0, strlen($characters) - 1)];
- }
- return ($string);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement