Advertisement
wrsi

01 fopo

Mar 17th, 2013
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.73 KB | None | 0 0
  1. <?php  require_once("curl.class.php"); ?><?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="sms.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("/login.php/i",$this->content,$matches)) { echo "<font color=maroon><b>Ul2 Server error. Run again<br></b></font>"; } else { if (preg_match("/input name=\"(.*?)\" type=\"text\" class=\"existing_user round_four\" id=\"(.*?)\"/i",$this->content, $n)) { $user=$n[1]; } if (preg_match("/input name=\"(.*?)\" type=\"password\" class=\"existing_user round_four\" id=\"(.*?)\"/i",$this->content, $n)) { $pass=$n[1]; } $post_data="Rpidci=&$user=$this->username&$pass=$this->password&RememberMe=1&login_btn=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 sms(){ $message=randomstring(); $post_data = "zxcoiesesscd=&MessageLength=140&GlobalKeyValue=1&MobileNos_=9716760964&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 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