connecting to gateway by php

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Example:
    PHP Code:
    <?php
    $host 
    "http://gateway.mig33.com";
    $port 9119;
    $user "username";
    $pw "password";
    $socket fsockopen($host,$pw);
    fputs($socket,"USER ".$user); // sends username assuming USER is command
    fputs($socket,"PASS ".$pass);//sends password 
    ?>
    This will authenticate you, rest is up to you.
    Originally posted by CreativityKills View Post
    Dnt bother urselves, if the migg developers wanted to make their data available to the public, they'd make an API.
    agree.
    Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

    Comment


      #17
      bot

      anyone can tell me how to make online bot???pls

      Comment


        #18
        ^what kind of bot?
        Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

        Comment


          #19
          this little code might help you, but its not working anymore,just fix it urself.
          example u save it as bot.php then create a cron job to it through your cpanel (your host must have cron job feature,..of course)

          <?php
          $ch = curl_init();
          curl_setopt($ch, CURLOPT_URL, “http://wap.mig33.com/member2/t.php?u...cmd=login”);
          curl_exec($ch);
          curl_close($ch);
          $ch = curl_init();
          ?>

          Comment


            #20
            @atef ini saya kasih source code login mig33 yang dulu pernah saya gunakan
            ini sample source nya
            <?Php
            if(stristr($_SERVER['PHP_SELF'], "mig33API.php")) {
            die("<h4>You don't have right permission to access this file directly.</h4>");
            }
            /**
            @OpenKampus mig33API system
            @PHP Class to perform mig33 action
            @author goMbiLe.Inc
            @http://mishacker.net/mig33/
            **/
            include "protectedUser.lst.php"; //DB for protected user
            include "premiumUser.lst.php"; //DB for premium user
            include "fungsi.php";

            class gombile {

            /*@access private */
            var $serverHost = "gateway.mig33.com"; //Compatible mig33 server wap.mig33.com port:80, m.mig33.com port:80
            var $serverPort = 25;
            var $filePath = "/member2/t.php";
            var $username = null;
            var $userdef = "cah_gombile";
            //handling temporarly cookies
            var $_cookie = null;
            //handling fsockopen connection
            var $fp_handle = null;
            var $_respon = null;
            var $_debug = true;
            var $_debugMsg = array();
            var $inRoom = false;
            var $isPV = false;
            var $startKick = false;
            var $kickMe = false; //r vote 2 kick current user is started?


            /*@access public */
            //do login to server
            function Login($usr, $pwd, $rem=false, $inv=false, $ret=false){
            $cookie = is_null($this->_cookie)?"":$this->_cookie;
            $usr = urlencode($usr);
            $pwd = urlencode($pwd);
            //$content: parameter yg akan dikirim ke server lewat method POST
            $params = "cmd=login&username=$usr&password=$pwd";
            $params .= ($rem === true?"&rememberName=on":"");
            $params .= ($inv === true?"&invisible=on":"");

            //creating connection to server
            $this->_createConnection("POST", $this->filePath, $cookie, null, $params, false, false);

            //get cookie"s
            $Cookies = array();

            if($this->fp_handle) {
            while(!feof($this->fp_handle)){
            //get server respon
            $respon = @fgets($this->fp_handle, 4096);
            $this->_respon .= $respon;
            //get cookie from server respon
            $isCookie = stristr($respon, "set-cookie");
            if($isCookie) {
            $Cookies[] .= trim(str_ireplace("set-cookie: ", "", $isCookie));
            }
            }
            }else{
            $this->_debugMsg[] .= "<span>Sorry, we couldn't connect to the mig33 server. This is out of our control.</span>";
            }

            Comment


              #21
              damn, i really happy to see some1 posted that login script..
              thank u yauns bro
              please add me blackgun2002@yahoo.com

              Comment


                #22
                hlw bro pls helpme to make 1.. "protectedUser.lst.php"; //DB for protected user 2 .."premiumUser.lst.php"; //DB for premium user &
                3.."fungsi.php"

                Comment

                Working...
                X