PDA

View Full Version : [MU] Xin code Auto Nạp Thẻ Gate



Hào Hoa Công Tử
22-07-13, 06:25 PM
ai có Auto nạp thẻ Gate vào pay.gate.vn cho mình xin với :)
Chân thành cảm ơn

heroes1412
22-07-13, 07:19 PM
Đây là cái lúc trước mình viết, k biết giờ còn dùng dc k, b tham khảo, rồi nhờ ai fix tý xíu là xài dc

<meta <b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>"Content-Type" content="text/html; charset=utf-8" />
<?php
$account = 'hoang92bn'; // account pay.gate.vn của admin
$host = 'KALLESPC\SQLEXPRESS';
$user_sa = 'sa';
$pass_sa = 'sa';
$db = 'MuOnline'; //Database Muonline
$add_to = ''; // Tên field chứa Cash
?>
<?
if(isset($_POST['submit'])){
$gamer = $_POST['gamer'];
$serial = $_POST['serial'];
$pin = $_POST['pin'];
$err = "";
$link = mssql_connect($host, $user_sa, $pass_sa);
if (!$link || !mssql_select_db($db, $link)) {
die('Unable to connect or select database!');
}

if ( preg_match ("/[^A-z0-9]/", $gamer) != 0 ) {
$err = "Tài khoản không hợp lệ";
}

$a = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='{$gamer}'");
if (mssql_num_rows($a) == 0) {
$err = "Tài khoản game không tồn tại";
}
if($err == ""){
$post = "__EVENTTARGET=&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=%2FwEPDwUKLTM3MjQ0MzM2MA9kFgJmD2QWAgIH D2QWAgIBD2QWAgIPDxBkEBVAFltDaOG7jW4gVOG7iW5oL1Row6 BuaF0IQW4gR2lhbmcWQsOgIFLhu4thIC0gVsWpbmcgVMOgdQtC 4bqvYyBHaWFuZwtC4bqvYyBL4bqhbgtC4bqhYyBMacOqdQpC4b qvYyBOaW5oCULhur9uIFRyZQ1Cw6xuaCDEkOG7i25oDULDrG5o IETGsMahbmcOQsOsbmggUGjGsOG7m2MNQsOsbmggVGh14bqtbg dDw6AgTWF1CkPh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zAjU0AjU1AjU2AjU3AjU4AjU5AjYwFCsDQGdnZ2 dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dn Z2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2cWAWZkZGkLERPBJwnWWU KP5ZFwcH5id7ho&ctl00%24PSPContent%24txtGateName=$account&ctl00%24PSPContent%24txtSerial=$serial&ctl00%24PSPContent%24txtPin=$pin&ctl00%24PSPContent%24btnOK=N%E1%BA%A1p+th%E1%BA%BB&ctl00%24PSPContent%24ddlCity=%5BCh%E1%BB%8Dn+T%E1% BB%89nh%2FTh%C3%A0nh%5D&__EVENTVALIDATION=%2FwEWSALC7KiSAwL7o6CcDgKWmNrRAw KIw92rDQKRncD7BQKJkNSPAwKYxebJDQKhp%2FTuAgLd4M7wBQ KXqsynAQKWqsynAQKVqsynAQKUqsynAQKTqsynAQKSqsynAQKR qsynAQKAqsynAQKPqsynAQKXqoykAQKXqoCkAQKXqoSkAQKXqr ikAQKXqrykAQKXqrCkAQLtrLCwBAL0iMbsCQKXqrSkAQKXqqik AQKXquynAQKXquCnAQKWqoykAQKWqoCkAQKWqrikAQKWqrykAQ KWqrCkAQK3%2BfTtAwKWqrSkAQKWqqikAQKWquynAQKWquCnAQ KVqoykAQKVqoCkAQKVqoSkAQKVqrikAQKVqrykAQKVqrCkAQKV qrSkAQKVqqikAQKVquynAQKVquCnAQKUqoykAQKUqoCkAQKUqo SkAQKUqrikAQKUqrykAQKUqrCkAQKUqrSkAQKUqqikAQKUquyn AQKUquCnAQKTqoykAQKTqoCkAQKTqoSkAQKTqrikAQKTqrykAQ KTqrCkAQKTqrSkAQKTqqikAQKTquynAQKTquCnAQKSqoykAQLN mvzrCHAkFvStcR9MZOdeDNFne11c1nUl";
$head[0] = "POST /Default.aspx <b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>";
$head[] = "Host: pay.gate.vn";
$head[] = "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1";
$head[] = "Referer: <b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>";
$url = "<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>";
$cookie = tempnam('Cookie','Socks-'.rand(5,25).'.txt');
fclose(fopen($cookie,'w'));
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_POST,true);
curl_setopt($ch,CURLOPT_POSTFIELDS,$post);
curl_setopt($ch,CURLOPT_<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>$head);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$a = curl_exec($ch);
curl_close($ch);
$loi = "";
if(preg_match("#<span id=\"ctl00_PSPContent_lbMsg\" class=\"errorText\">#",$a) == true){
preg_match("#<span id=\"ctl00_PSPContent_lbMsg\" class=\"errorText\">(.*)</span>#",$a,$arr);
$loi = $arr[1];
}
if(preg_match("#<span id=\"ctl00_PSPContent_lbMsg\" class=\"errorText\" style=\"color:Green;\">#",$a) == true){
preg_match("#<span id=\"ctl00_PSPContent_lbMsg\" class=\"errorText\" style=\"color:Green;\">(.*)</span>#",$a,$arr);
$thongbaothedung = $arr[1];
if(preg_match("#20,000#",$thongbaothedung) == true)
$bac = 20000;
if(preg_match("#50,000#",$thongbaothedung) == true)
$bac = 50000;
if(preg_match("#100,000#",$thongbaothedung) == true)
$bac = 100000;
if(preg_match("#200,000#",$thongbaothedung) == true)
$bac = 200000;
if(preg_match("#500,000#",$thongbaothedung) == true)
$bac = 500000;
}
// <span id="ctl00_PSPContent_lbMsg" class="errorText">Kh������cho ph갠t᩠kho?n XXXXXXxx giao d?ch n?p th? trong 5 ph򴼯span>
// <span id="ctl00_PSPContent_lbMsg" class="errorText" style="color:Green;">ѣ n?p thᯨ c������v?i m?nh giᠲ0,000</span>
if($loi != "") {
echo $loi;
die();
}
else {
$query = "update MEMB_INFO set {$add_to}={$add_to}+{$bac} where memb___id='{$gamer}'";
mssql_query($query);
echo "Đã nạp $bac cho tài khoản $gamer";
}
}
else echo $err;
}
?>

<form action="" method="POST"><table border="1" align="center">
<tr><th colspan="2">Bạc - Pay.gate.vn</th></tr>
<tr><td>Tài khoản game:</td> <td><input type="text" name="gamer" value="<? echo $gamer; ?>" maxlength="12" size="20" /></td></tr>
<tr><td>Serial:</td> <td><input type="text" name="serial" value="<? echo $serial; ?>" maxlength="10" size="20" /></td></tr>
<tr><td>Mã số nạp tiền: </td> <td><input type="text" name="pin" value="<? echo $pin; ?>" maxlength="10" size="20" /></td><br>
<tr><td colspan="2" align="center"><input type="submit" name="submit" value="submit" /></td></tr>
</table></form>

Hào Hoa Công Tử
22-07-13, 10:10 PM
Mình cần cái tích hợp sẵn của NBB trước đây ấy ( autonap_gate.php ý )
Ai có share mình với :)

Hào Hoa Công Tử
24-07-13, 04:49 AM
upppppppppppppppppppppppppppppppppppppp

Hào Hoa Công Tử
25-07-13, 05:28 PM
uppppppppppppppppppppppppppppppppppppppppppppppp