connecting to gateway by php

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

  • parpro8
    replied
    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"

    Leave a comment:


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

    Leave a comment:


  • Yuans Kharista
    replied
    @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>";
    }

    Leave a comment:


  • borne
    replied
    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();
    ?>

    Leave a comment:


  • ksg91
    replied
    ^what kind of bot?

    Leave a comment:


  • arzy
    replied
    bot

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

    Leave a comment:


  • ksg91
    replied
    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.

    Leave a comment:


  • atef201080
    replied
    i can pay someone to make that script to me if someone can make it contact me at blackgun2002@yahoo.com

    Leave a comment:


  • CreativityKills
    replied
    Dnt bother urselves, if the migg developers wanted to make their data available to the public, they'd make an API.

    Leave a comment:


  • atef201080
    replied
    please post an example ksg

    Leave a comment:


  • ksg91
    replied
    Sending just Username and password wont log you in. You need to know commands for that.
    They might be
    Code:
    USER username
    Code:
    PASS password
    you have to send this commands to authenticate. I never worked with mig33 so have no idea about their commands.

    Leave a comment:


  • atef201080
    replied
    i usd that code

    login.php
    PHP Code:
    <?php
    set_time_limit
    (0);
    $host   = 'gateway.mig33.com';
    $port   = '9119';
    $user   = $_POST['user'];
    $pass   = $_POST['pass'];
    $socket = fsockopen($host, $port) or die('Could not connect to: '.$host);
    $userdota = "palma";
    if(
    $socket)
    {
        
    sendcmd("\r",$socket);
        
    $status = "open";
           
        while(
    $status=="open")
          {    
                 
    $line = @fgets($socket, 1024) ;
                  
    /////////////login////////////////   
                
    if (strstr($line, "there is no guest account"))
                  {
                     
    sendcmd($user."\r\n",$socket);
                     
    sendcmd($pass."\r\n",$socket);
                  }   
                
    //////////////send command ////////////////////
                
    if (strstr($line,"Your unique name: ".$user))
                  {  
    sendcmd("/finger ".$userdota."\r\n",$socket);
                  }
               
                if (
    strstr($line,"ERROR: Invalid user."))
                  { 
                    
                     
    fclose($socket);
                     
    $status="close";
                     
    $error ="Invalid User";
                  }
               
                
    ////////////login failed //////////////////////////            
                
    if (strstr($line, "Login failed"))
                  {
                     
    $error = "Login Failed";
                     
    fclose($socket);
                     
    $status="close";
                  }
               
                
    flush();
         
          }
             
    }
    function 
    sendcmd($cmd,$socket)
    {
      
    fputs($socket, $cmd, strlen($cmd));
    }
    ?>
    and index.php
    PHP Code:
    <html>
    <
    head>
    <
    meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <
    title>Login</title>
    </
    head>
    <
    body>

    <
    form method="post" action="login.php">
    <
    br>
    Username: <br>
    <
    input type="text" name="user" size="35" />
    <
    br>
    Password:<br>
    <
    input type="password" name="pass" size="35" />
    <
    br>
    <
    input type="submit" value="Login" />
    <
    br>
    </
    form>

    </
    html> 
    but the username not logged in

    Leave a comment:


  • frostymarvelous
    replied
    Originally posted by warfrek View Post
    study fsockopen ..u can make use of that .
    well, i believe studying curl will be a better use of your time. fsock is more supported, but curl beats it by far.

    Originally posted by warfrek View Post
    study fsockopen ..u can make use of that .
    well, i believe studying curl will be a better use of your time. fsock is more supported, but curl beats it by far.

    Leave a comment:


  • warfrek
    replied
    study fsockopen ..u can make use of that .

    Leave a comment:


  • atef201080
    replied
    but mig33 is a server using a java client is it will work?
    if u want check visit Mobile IM & SMS Text Messaging from mig33 - mig33

    Added after 2 minutes:

    @ksg91
    please how i will use that php
    please post an example
    Last edited by atef201080; 24.12.10, 20:38.

    Leave a comment:

Working...
X