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 set_time_limit(0); date_default_timezone_set("Asia/Bangkok"); $app = [ 'api_key..
Decoded Output download
<?php
set_time_limit(0);
date_default_timezone_set("Asia/Bangkok");
$app = [
'api_key' => '882a8490361da98702bf97a021ddc14d',
'secret' => '62f8ce9f74b12f84c123cc23437a4a32'
];
$email_prefix = [
'gmail.com',
'hotmail.com',
'yahoo.com',
'live.com',
'rocket.com',
'outlook.com',
];
for(;;){
$randomBirthDay = date('Y-m-d', rand(strtotime('1980-01-01'), strtotime('1995-12-30')));
$names = [
'first' => [
'Akira', 'Amarissa', 'Chandra', 'Charissa', 'Candice', 'Darin',
],
'last' => [
'SMITH', 'JOHNSON', 'Jecelyn', 'Kristin', 'JONES', 'MILLER'
],
'mid' => [
'Alexander', 'Anthony', 'Charles', 'Dash', 'David', 'Edward'
],
'th' => [
'', '', '', '', '', ''
],
'th1' => [
'', '', '', '', ' ', ''
]
];
$nameth = $names['th'][array_rand($names['th'])];
$nameth2 = $names['th1'][array_rand($names['th1'])];
$randomFirstName = $names['first'][array_rand($names['first'])];
$randomName = $names['last'][array_rand($names['last'])];
$password = 'Palmynaja'.rand(0000,9999999).'@@@@';
$fullName = $randomFirstName.' '.$randomName;
$md5Time = md5(time());
$hash = substr($md5Time, 0, 8).'-'.substr($md5Time, 8, 4).'-'.substr($md5Time, 12, 4).'-'.substr($md5Time, 16, 4).'-'.substr($md5Time, 20, 12);
$emailRand = strtolower(convert_vi_to_en(str_replace(' ', '', $fullName))).substr(md5(time().date('Ymd',rand(0000,time()))), 0, 6).'@'.$email_prefix[array_rand($email_prefix)];
$gender = (rand(0, 10) > 5 ? 'M' : 'F');
$req = [
'api_key' => $app['api_key'],
'attempt_login' => true,
'birthday' => $randomBirthDay,
'client_country_code' => 'TH',
'fb_api_caller_class' => 'com.facebook.registration.protocol.RegisterAccountMethod',
'fb_api_req_friendly_name' => 'registerAccount',
'firstname' => $nameth,
'format' => 'json',
'gender' => $gender,
'lastname' => $nameth2,
'email' => $emailRand,
'locale' => 'th_TH',
'method' => 'user.register',
'password' => $password,
'reg_instance' => $hash,
'return_multiple_errors' => true
];
ksort($req);
$sig = '';
foreach($req as $k => $v){
$sig .= $k.'='.$v;
}
$ensig = md5($sig.$app['secret']);
$req['sig'] = $ensig;
$api = 'https://b-api.facebook.com/method/user.register';
$graph = 'https://graph.fb.me/';
$reg = get_curl_proxy($api, $req);
@$reg->error_data = json_decode($reg->error_data);
$reg->email = $emailRand;
if(!isset($reg->error_code)){
$fp = fopen('tokenth.log', 'a+');
fwrite($fp, $reg->session_info->access_token."
");
fclose($fp);
}
}
function get_random_proxy(){
srand ((double)microtime()*1000000);
$f_contents = file ("proxy.txt");
$line = $f_contents[array_rand ($f_contents)];
return $line;
}
function get_curl_proxy($url = '', $params = [], $post = 1){
$agent = "[FBAN/FB4A;FBAV/35.0.0.48.273;FBDM/{density=1.33125,width=800,height=1205};FBLC/th_;FBCR/;FBPN/com.facebook.katana;FBDV/Nexus 7;FBSV/4.1.1;FBBK/0;]";
$proxy_ip = get_random_proxy();
$referer = "http://www.google.com/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url.(!$post && $params ? '?'.http_build_query($params) : ''));
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, $proxy_ip);
curl_setopt($ch, CURLOPT_REFERER, $referer);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_MAXREDIRS, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
if($post){
$opts[CURLOPT_POST] = true;
$opts[CURLOPT_POSTFIELDS] = $params;
}
curl_setopt_array($ch, $opts);
$data = curl_exec($ch);
curl_close($ch);
return json_decode($data);
}
function convert_vi_to_en($str) {
$str = preg_replace("/(||||||||||||||||)/", 'a', $str);
$str = preg_replace("/(||||||||||)/", 'e', $str);
$str = preg_replace("/(||||)/", 'i', $str);
$str = preg_replace("/(||||||||||||||||)/", 'o', $str);
$str = preg_replace("/(||||||||||)/", 'u', $str);
$str = preg_replace("/(||||)/", 'y', $str);
$str = preg_replace("/()/", 'd', $str);
$str = preg_replace("/(||||||||||||||||)/", 'A', $str);
$str = preg_replace("/(||||||||||)/", 'E', $str);
$str = preg_replace("/(||||)/", 'I', $str);
$str = preg_replace("/(||||||||||||||||)/", 'O', $str);
$str = preg_replace("/(||||||||||)/", 'U', $str);
$str = preg_replace("/(||||)/", 'Y', $str);
$str = preg_replace("/()/", 'D', $str);
//$str = str_replace(" ", "-", str_replace("&*#39;","",$str));
return $str;
}
?>
<meta http-equiv="refresh" content="1">
Did this file decode correctly?
Original Code
<?php
set_time_limit(0);
date_default_timezone_set("Asia/Bangkok");
$app = [
'api_key' => '882a8490361da98702bf97a021ddc14d',
'secret' => '62f8ce9f74b12f84c123cc23437a4a32'
];
$email_prefix = [
'gmail.com',
'hotmail.com',
'yahoo.com',
'live.com',
'rocket.com',
'outlook.com',
];
for(;;){
$randomBirthDay = date('Y-m-d', rand(strtotime('1980-01-01'), strtotime('1995-12-30')));
$names = [
'first' => [
'Akira', 'Amarissa', 'Chandra', 'Charissa', 'Candice', 'Darin',
],
'last' => [
'SMITH', 'JOHNSON', 'Jecelyn', 'Kristin', 'JONES', 'MILLER'
],
'mid' => [
'Alexander', 'Anthony', 'Charles', 'Dash', 'David', 'Edward'
],
'th' => [
'', '', '', '', '', ''
],
'th1' => [
'', '', '', '', ' ', ''
]
];
$nameth = $names['th'][array_rand($names['th'])];
$nameth2 = $names['th1'][array_rand($names['th1'])];
$randomFirstName = $names['first'][array_rand($names['first'])];
$randomName = $names['last'][array_rand($names['last'])];
$password = 'Palmynaja'.rand(0000,9999999).'@@@@';
$fullName = $randomFirstName.' '.$randomName;
$md5Time = md5(time());
$hash = substr($md5Time, 0, 8).'-'.substr($md5Time, 8, 4).'-'.substr($md5Time, 12, 4).'-'.substr($md5Time, 16, 4).'-'.substr($md5Time, 20, 12);
$emailRand = strtolower(convert_vi_to_en(str_replace(' ', '', $fullName))).substr(md5(time().date('Ymd',rand(0000,time()))), 0, 6).'@'.$email_prefix[array_rand($email_prefix)];
$gender = (rand(0, 10) > 5 ? 'M' : 'F');
$req = [
'api_key' => $app['api_key'],
'attempt_login' => true,
'birthday' => $randomBirthDay,
'client_country_code' => 'TH',
'fb_api_caller_class' => 'com.facebook.registration.protocol.RegisterAccountMethod',
'fb_api_req_friendly_name' => 'registerAccount',
'firstname' => $nameth,
'format' => 'json',
'gender' => $gender,
'lastname' => $nameth2,
'email' => $emailRand,
'locale' => 'th_TH',
'method' => 'user.register',
'password' => $password,
'reg_instance' => $hash,
'return_multiple_errors' => true
];
ksort($req);
$sig = '';
foreach($req as $k => $v){
$sig .= $k.'='.$v;
}
$ensig = md5($sig.$app['secret']);
$req['sig'] = $ensig;
$api = 'https://b-api.facebook.com/method/user.register';
$graph = 'https://graph.fb.me/';
$reg = get_curl_proxy($api, $req);
@$reg->error_data = json_decode($reg->error_data);
$reg->email = $emailRand;
if(!isset($reg->error_code)){
$fp = fopen('tokenth.log', 'a+');
fwrite($fp, $reg->session_info->access_token."\n");
fclose($fp);
}
}
function get_random_proxy(){
srand ((double)microtime()*1000000);
$f_contents = file ("proxy.txt");
$line = $f_contents[array_rand ($f_contents)];
return $line;
}
function get_curl_proxy($url = '', $params = [], $post = 1){
$agent = "[FBAN/FB4A;FBAV/35.0.0.48.273;FBDM/{density=1.33125,width=800,height=1205};FBLC/th_;FBCR/;FBPN/com.facebook.katana;FBDV/Nexus 7;FBSV/4.1.1;FBBK/0;]";
$proxy_ip = get_random_proxy();
$referer = "http://www.google.com/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url.(!$post && $params ? '?'.http_build_query($params) : ''));
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, $proxy_ip);
curl_setopt($ch, CURLOPT_REFERER, $referer);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_MAXREDIRS, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
if($post){
$opts[CURLOPT_POST] = true;
$opts[CURLOPT_POSTFIELDS] = $params;
}
curl_setopt_array($ch, $opts);
$data = curl_exec($ch);
curl_close($ch);
return json_decode($data);
}
function convert_vi_to_en($str) {
$str = preg_replace("/(||||||||||||||||)/", 'a', $str);
$str = preg_replace("/(||||||||||)/", 'e', $str);
$str = preg_replace("/(||||)/", 'i', $str);
$str = preg_replace("/(||||||||||||||||)/", 'o', $str);
$str = preg_replace("/(||||||||||)/", 'u', $str);
$str = preg_replace("/(||||)/", 'y', $str);
$str = preg_replace("/()/", 'd', $str);
$str = preg_replace("/(||||||||||||||||)/", 'A', $str);
$str = preg_replace("/(||||||||||)/", 'E', $str);
$str = preg_replace("/(||||)/", 'I', $str);
$str = preg_replace("/(||||||||||||||||)/", 'O', $str);
$str = preg_replace("/(||||||||||)/", 'U', $str);
$str = preg_replace("/(||||)/", 'Y', $str);
$str = preg_replace("/()/", 'D', $str);
//$str = str_replace(" ", "-", str_replace("&*#39;","",$str));
return $str;
}
?>
<meta http-equiv="refresh" content="1">
Function Calls
None |
Stats
MD5 | de5763072bf48441f44f89c30479b1c6 |
Eval Count | 0 |
Decode Time | 92 ms |