Connect($CookieHost, 80); if ($Connected5=1){ $this->SendData($stream5 , $this->Packet8($myID,$myPass,$CookieHost)); $res5 = $this->GetDataArrival($stream5); if ($res5 <> ''){ //GET COOKIE $cookie1 = $this->GetCode("Y=v=",";",$res5); $cookie2 = $this->GetCode("T=z=",";",$res5); //if($cookie1="" OR $cookie2=""){echo "CONNECT FAILED! SERVER IS BUSY OR INVALID ID/PASS. TRY AGAIN LATER.";} $cookie = "Y=v=$cookie1; T=z=$cookie2"; } } //[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ list($Connected,$stream) = $this->Connect($wapHost, 80); if ($Connected=1){ $this->SendData($stream , $this->Packet1($wapHost)); $res = $this->GetDataArrival($stream); if ($res <> ''){ //GET SID AND INTL $sid = $this->GetCode("ySiD=",'"',$res); $intltmp = $this->GetCode("B=",";",$res); $intl= "B=$intltmp;" ; } } //[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ list($Connected1,$stream1) = $this->Connect($wapHost, 80); if ($Connected1=1){ $this->SendData($stream1 , $this->Packet2($sid,$wapHost,$intl,$cookie)); $res1 = $this->GetDataArrival($stream1); if ($res1 <> ''){ //ENTER SID AND INTL } } //[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ list($Connected2,$stream2) = $this->Connect($wapHost, 80); if ($Connected2=1){ $this->SendData($stream2 , $this->Packet3($wapHost,$intl,$cookie)); $res2 = $this->GetDataArrival($stream2); if ($res2 <> ''){ //GET WID $widtmp = $this->GetCode("welcome?r=","C",$res2); $wid = substr($widtmp,0,strlen($widtmp)-2); // $Dat5 = explode("welcome?r=",$res2); //$Dat6 = explode($res2,$Dat5[1]); //$wid = $Dat6[0]; } } //[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ list($Connected3,$stream3) = $this->Connect($wapHost, 80); if ($Connected3=1){ $this->SendData($stream3 , $this->Packet4($wid,$wapHost,$cookie)); $res3 = $this->GetDataArrival($stream3); if ($res3 <> ''){ //GET CID $cid = $this->GetCode("?c=","&r=",$res3); } } //[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ list($Connected4,$stream4) = $this->Connect($wapHost, 80); if ($Connected4=1){ $this->SendData($stream4 , $this->Packet5($cid,$wid,$sid,$wapHost,$intl,$cookie)); $res4 = $this->GetDataArrival($stream4); if ($res4 <> ''){ //FINNALLY CONNECT //echo "COOKIE:$cookie ______________SID:$sid ______________WID:$wid ______________CID:$cid ______________INTL:$intl" ; $logged=1; } } //[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ $num = rand(0,10000); sleep(1); $this->SetStatus($Status,$cid,$wid,$intl,$wapHost,$cookie); //$this->LogoutWap($wid, $wapHost,$intl ,$cookie); //sleep(1); //$mess1 = $this->Test($cid,$wid,$intl,$wapHost,$cookie,$sid); //sleep(1); $this->SendMessage($Message,$VictimID,$cid,$wid,$intl,$wapHost,$cookie); //sleep(1); $logged=1; //sleep(1); exit; return array($cid,$wid,$sid,$intl,$cookie,$wapHost,$logged); } //-------------------------------------------------------------------------------------- function LogoutWap($MyWID,$MyWAPHost,$MyIntl,$MyCookie){ list($Connected,$stream) = $this->Connect($MyWAPHost, 80); if ($Connected=1){ $this->SendData($stream , $this->Packet6($MyWID,$MyWAPHost,$MyIntl,$MyCookie)); $res = $this->GetDataArrival($stream); if ($res <> ''){ //LOGOUT echo $this->Packet6($MyWID,$MyWAPHost,$MyIntl,$MyCookie); } } } //-------------------------------------------------------------------------------------- function SendMessage($MyMsg,$MyVictim,$MyCID,$MyWID,$MyIntl,$MyWAPHost,$MyCookie){ list($Connected,$stream) = $this->Connect($MyWAPHost, 80); if ($Connected=1){ $this->SendData($stream , $this->Packet7($MyMsg,$MyVictim,$MyCID,$MyWID,$MyIntl,$MyWAPHost,$MyCookie)); $res = $this->GetDataArrival($stream); if ($res <> ''){ //LOGOUT //echo $this->Packet6($MyWID,$MyWAPHost,$MyIntl,$MyCookie); } } } //-------------------------------------------------------------------------------------- /*function Test($MyCID,$MyWID,$MyIntl,$MyWAPHost,$MyCookie,$MySID){ list($Connected,$stream) = $this->Connect($MyWAPHost, 80); if ($Connected=1){ $this->SendData($stream , $this->Packet12($MyCID,$MyWID,$MyIntl,$MyWAPHost,$MyCookie,$MySID)); $res = $this->GetDataArrival($stream); if ($res <> ''){ //LOGOUT echo $res; } } return $res; } */ //-------------------------------------------------------------------------------------- function SetStatus($MyMess,$MyCID,$MyWID,$MyIntl,$MyWAPHost,$MyCookie){ list($Connected,$stream) = $this->Connect($MyWAPHost, 80); if ($Connected=1){ $this->SendData($stream , $this->Packet11($MyMess,$MyCID,$MyWID,$MyIntl,$MyWAPHost,$MyCookie)); $res = $this->GetDataArrival($stream); if ($res <> ''){ // } } //return 0; } //-------------------------------------------------------------------------------------- function GetCode($start,$end,$str){ $x1=strpos($str,$start); if($x1){ $x2=strpos($str,$end , $x1+1); $getbet=substr($str,$x1+strlen($start),$x2-$x1-strlen($start)); }else{ $getbet=""; } return $getbet; } } ?>