I can't find a way to fix this error:
details:
- Windows 10 64bits
- PHP 8.1.10 (cli) (built: Aug 30 2022 18:08:04) (NTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.10, Copyright (c) Zend Technologies
`C:\Users\User\Desktop\BOT-TLG\CCEXTRAP>php run.php
Deprecated: Optional parameter $color declared before required parameter $text is implicitly treated as a required parameter in C:\Users\User\Desktop\BOT-TLG\CCEXTRAP\cc.class.php on line 15
###############################################
Auto Generate + Checker CC Extrap
###############################################
Create By : Kyuoko
Code : PHP
Thx To UKL-TEAM, GFS-TEAM, AND YOU
###############################################
[+] BIN : 552004
[+] Check Status Valid ? 1/0 : 1
[+] Amount/Jumlah : 3
###############################################
{~} Starting generation
###############################################
Fatal error: Uncaught Error: Call to undefined function curl_init() in C:\Users\User\Desktop\BOT-TLG\CCEXTRAP\cc.class.php:122
Stack trace:
#0 C:\Users\User\Desktop\BOT-TLG\CCEXTRAP\cc.class.php(43): CC->Check('552004825809912...')
#1 C:\Users\User\Desktop\BOT-TLG\CCEXTRAP\run.php(14): CC->Execute()
#2 {main}
thrown in C:\Users\User\Desktop\BOT-TLG\CCEXTRAP\cc.class.php on line 122
C:\Users\User\Desktop\BOT-TLG\CCEXTRAP>php --version
PHP 8.1.10 (cli) (built: Aug 30 2022 18:08:04) (NTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.10, Copyright (c) Zend Technologies`
bin = $bin;
$this->check = $check;
$this->jml = $jml;
}
private function color($color, $text)
{
$arrayColor = [
'grey' => '1;30',
'red' => '1;31',
'green' => '1;32',
'yellow' => '1;33',
'blue' => '1;34',
'purple' => '1;35',
'nevy' => '1;36',
'white' => '1;0',
];
return "\033[" . $arrayColor[$color] . "m" . $text . "\033[0m";
}
public function execute()
{
echo "###############################################\n";
echo "{~} Starting generation\n";
echo "###############################################\n";
sleep(5);
if ($this->check < 1) {
$this->generateCreditCards();
} else {
$this->checkCreditCards();
}
}
protected function generateCreditCards()
{
for ($i = 1; $i <= $this->jml; $i++) {
echo $this->extrapolateCreditCard($this->bin) . "\n";
sleep(1);
}
}
protected function checkCreditCards()
{
for ($i = 1; $i <= $this->jml; $i++) {
$card = $this->extrapolateCreditCard($this->bin);
echo $this->checkCreditCard($card) . "\n";
sleep(1);
}
}
protected function extrapolateCreditCard($bin)
{
$ccNumber = $this->generateRandomNumber($bin);
if (preg_match_all("#x#si", $bin)) {
$ccNumber = str_split($ccNumber);
$replace = "";
foreach ($ccNumber as $cc => $key) {
$replace .= str_replace("x", rand(0, 9), $key);
}
$complete = $this->calculateCheckDigit($replace);
} else {
$complete = $this->calculateCheckDigit($ccNumber);
}
return $complete . $this->generateYears();
}
protected function generateRandomNumber($bin)
{
$ccNumber = $bin;
while (strlen($ccNumber) < (16 - 1)) {
$ccNumber .= rand(0, 9);
}
return $ccNumber;
}
protected function calculateCheckDigit($ccnumber)
{
$sum = 0;
$pos = 0;
$reversedCCnumber = strrev($ccnumber);
while ($pos < strlen($ccnumber) - 1) {
$odd = $reversedCCnumber[$pos] * 2;
if ($odd > 9) {
$odd -= 9;
}
$sum += $odd;
if ($pos != (strlen($ccnumber) - 2)) {
$sum += $reversedCCnumber[$pos + 1];
}
$pos += 2;
}
$checkDigit = ((floor($sum / 10) + 1) * 10 - $sum) % 10;
$ccnumber .= $checkDigit;
return $ccnumber;
}
protected function generateYears()
{
$randMonth = str_pad(rand(1, 12), 2, '0', STR_PAD_LEFT);
$randYears = str_pad(rand(20, 25), 2, '0', STR_PAD_LEFT);
$randCvv = str_pad(rand(10, 800), 3, '0', STR_PAD_LEFT);
return "|$randMonth|20$randYears|$randCvv";
}
protected function checkCreditCard($card)
{
$headers = [
'origin: https://amznloot.com',
'accept-language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7',
'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36',
'Content-Type: application/x-www-form-urlencoded; charset=UTF-8',
'Accept: */*',
'referer: https://amznloot.com/cc-checker/',
'X-Requested-With: XMLHttpRequest',
'Connection: keep-alive',
];
$ch = curl_init();
$options = [
CURLOPT_URL => "https://amznloot.com/cc-checker/api.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => "data=" . urlencode($card),
CURLOPT_HTTPHEADER => $headers,
];
curl_setopt_array($ch, $options);
$exec = curl_exec($ch);
$status = json_decode($exec);
switch ($status->error) {
case '2':
return $card . $this->color("red", " [ DIE ]");
break;
case '3':
return $card . $this->color("grey", " [ UNKNOWN ]");
break;
case '4':
return $card . $this->color("yellow", " [ CC NOT VALID ]");
break;
case '1':
return $card . $this->color("green", " [ LIVE ]");
break;
}
}
}
// Example Usage:
$creditCardChecker = new CreditCardChecker('123456', 1, 5);
$creditCardChecker->execute();