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"
connecting to gateway by php
Collapse
X
-
damn, i really happy to see some1 posted that login script..
thank u yauns bro
please add me blackgun2002@yahoo.com
Leave a comment:
-
@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:
-
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:
-
Example:
This will authenticate you, rest is up to you.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
?>
agree.Originally posted by CreativityKills View PostDnt bother urselves, if the migg developers wanted to make their data available to the public, they'd make an API.
Leave a comment:
-
i can pay someone to make that script to me if someone can make it contact me at blackgun2002@yahoo.com
Leave a comment:
-
Dnt bother urselves, if the migg developers wanted to make their data available to the public, they'd make an API.
Leave a comment:
-
Sending just Username and password wont log you in. You need to know commands for that.
They might be
Code:USER username
you have to send this commands to authenticate. I never worked with mig33 so have no idea about their commands.Code:PASS password
Leave a comment:
-
i usd that code
login.phpand index.phpPHP 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));
}
?>
but the username not logged inPHP 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>
Leave a comment:
-
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 Poststudy 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 Poststudy fsockopen ..u can make use of that .
Leave a comment:
-
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 exampleLast edited by atef201080; 24.12.10, 20:38.
Leave a comment:
Leave a comment: