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 function ($) { if("`api`='{$}' "); global $X; if ($X['app_api_pwd']=='' or $X['..
Decoded Output download
<?php
function ($)
{
if("`api`='{$}' ");
global $X;
if ($X['app_api_pwd']=='' or $X['app_api_pwd']=='0') {
return $;
}
if (strstr($, '.')==true) {
if("`error`='API,API :BSPHP_940011 ( ->->API API) '");
if (::(3(115).3(121).3(115), 'error_code')==1) {
(while('API,API :BSPHP_940011','appen'));
} else {
(while(',.','appen'));
}
}
$=array(
'|MH171C'=> '=',
'|H370J'=> '+',
'|TJS7E'=> '/'
);
$class=strtr($, $);
$class=des_mdecrypt($class, $X['app_api_pwd']);
if("`error`=':{$class}'");
return $class;
}
function ($, $R='')
{
if (::(3(115).3(121).3(115), 'error_code')==0) {
ob_end_clean();
}
if ($R=='') $R='-200';
if (defined('app_print_fun') and app_print_fun !='notfun_bsphp_output') {
$app_print_fun=app_print_fun;
$=$app_print_fun($, $R);
$print_fun_data=$;
if("`print_fun`='{$app_print_fun}',`print_fun_data`='{$print_fun_data}'");
} else {
$print_fun_data=$;
if("`print_fun`='notfun_bsphp_output',`print_fun_data`='{$print_fun_data}'");
}
if (defined('app_show_encryption') and app_show_encryption !='notfun_bsphp_mencrypt') {
$app_show_encryption=app_show_encryption;
if (!function_exists($app_show_encryption)) {
$=$app_show_encryption . ' ';
} else {
$=call_user_func($app_show_encryption, $, HOST_GET_PWD);
$encryption_data=($);
if("`encryption`='{$app_show_encryption}',`encryption_data`='{$encryption_data}'");
}
} else {
$encryption_data=($);
if("`encryption`='notfun_bsphp_mencrypt',`encryption_data`='{$encryption_data}'");
}
echo $;
$return_content=base64_encode(ob_get_contents());
if("`print_html`='{$return_content}' ");
exit();
}
function return($for9break)
{
global $;
isset($[$for9break]) ? $_GET=$[$for9break] : $_GET='';
$_GET=trim($_GET);
$_GET=trim($_GET, PHP_EOL);
if ($_GET=='') {
if ($for9break==3(97).3(112).3(105) or $for9break==3(109).3(117).3(116).3(117).3(97).3(108).3(107).3(101).3(121) or $for9break==3(109).3(100).3(53) or $for9break==3(66).3(83).3(112).3(104).3(112).3(83).3(101).3(83).3(115).3(76) or $for9break==3(97).3(112).3(112).3(115).3(97).3(102).3(101).3(99).3(111).3(100).3(101) or $for9break==3(97).3(112).3(105) or $for9break==3(100).3(97).3(116).3(101)) {
$for9break=(3(97).3(112).3(112).3(95) . $for9break);
isset($[$for9break]) ? $_GET=$[$for9break] : $_GET='';
$_GET=trim($_GET);
$_GET=trim($_GET, PHP_EOL);
}
}
unset($);
if (::($_GET)==1) {
(while("",'appen')."{$_GET}");
} else {
$_GET=class($_GET);
return $_GET;
}
}
function PrLog($switch)
{
$class=::(3(97).3(112).3(112).3(108).3(105).3(98), 3(97).3(112).3(112).3(101).3(110).3(95).3(115).3(116).3(114).3(95).3(108).3(111).3(103));
$_GET=$class[$switch];
($_GET, $switch);
}
function ()
{
$='parameter';
if (HOST_GET==0) {
if (Qand($) !='' or Qand((3(97).3(112).3(112).3(95) . $)) !='') {
$=1;
} elseif (8($) !='' or 8((3(97).3(112).3(112).3(95) . $)) !='') {
$=2;
} elseif (8('api') !='' or 8((3(97).3(112).3(112).3(95).3(97).3(112).3(105))) !='') {
$=3;
} elseif (Qand('api') !='' or Qand((3(97).3(112).3(112).3(95).3(97).3(112).3(105))) !='') {
$=4;
} else {
if("`error`='5054 CODE:63784 () '");
PrLog(5054);
}
} else {
$=HOST_GET;
}
if("`parameter_type`='{$}' ");
switch ($) {
case 1:
if (Qand($) !='' or Qand((3(97).3(112).3(112).3(95) . $)) !='') {
$=rawurldecode(Qand($));
if ($=='') {
$=Qand((3(97).3(112).3(112).3(95) . $));
}
if("`parameter`='{$}' ");
} else {
if("`error`='[POST] parameter :-> '");
PrLog(5001);
return false;
}
break;
case 2:
if (8($) !='' or 8((3(97).3(112).3(112).3(95) . $)) !='') {
$=rawurldecode(8($));
if ($=='') {
$=Qand((3(97).3(112).3(112).3(95) . $));
}
if("`parameter`='{$}' ");
} else {
if("`error`='[GET] parameter :-> '");
PrLog(5000);
return false;
}
break;
case 3:
$=$_GET;
$=http_build_query($);
if("`parameter`='{$}' ");
break;
case 4:
$=$_POST;
$=http_build_query($);
if("`parameter`='{$}' ");
break;
default:
if("`error`='5000 () '");
PrLog(5000);
return false;
}
if (HOST_DATA_INSGIN !='') {
switch ($) {
case 1:
$=Qand(3(115).3(103).3(105).3(110));
$=rawurldecode(Qand(3(112).3(97).3(114).3(97).3(109).3(101).3(116).3(101).3(114)));
$=switch('[KEY]', $, HOST_DATA_INSGIN);
$9and=md5($);
$=HOST_DATA_INSGIN;
if("`in_sigm_key`='{$}',`in_sigm_txt`='{$}',`in_sigm_md5`='{$9and}' ");
if ($=='') {
PrLog(5053);
}
if ($ !=$9and) {
PrLog(5052);
}
break;
case 2:
$=8(3(115).3(103).3(105).3(110));
$=rawurldecode(8(3(112).3(97).3(114).3(97).3(109).3(101).3(116).3(101).3(114)));
$=switch('[KEY]', $, HOST_DATA_INSGIN);
$9and=md5($);
$=HOST_DATA_INSGIN;
if("`in_sigm_key`='{$}',`in_sigm_txt`='{$}',`in_sigm_md5`='{$9and}' ");
if ($=='') {
PrLog(5053);
}
if ($ !=$9and) {
PrLog(5052);
}
break;
case 3:
$=8(3(97).3(112).3(105));
$Mif=8(3(66).3(83).3(112).3(104).3(112).3(83).3(101).3(83).3(115).3(76));
$elseif=8(3(100).3(97).3(116).3(101));
$=8(3(109).3(100).3(53));
$elseifB=8(3(109).3(117).3(116).3(117).3(97).3(108).3(107).3(101).3(121));
$whileand=8(3(97).3(112).3(112).3(115).3(97).3(102).3(101).3(99).3(111).3(100).3(101));
$=8(3(115).3(103).3(105).3(110));
$="&api=$&BSphpSeSsL=$Mif&date=$elseif&md5=$&mutualkey=$elseifB&appsafecode=$whileand";
$=switch('[KEY]', $, HOST_DATA_INSGIN);
$9and=md5($);
$=HOST_DATA_INSGIN;
if("`in_sigm_key`='{$}',`in_sigm_txt`='{$}',`in_sigm_md5`='{$9and}' ");
if ($=='') {
PrLog(5053);
}
if ($ !=$9and) {
PrLog(5052);
}
break;
case 4:
$=Qand(3(97).3(112).3(105));
$Mif=Qand(3(66).3(83).3(112).3(104).3(112).3(83).3(101).3(83).3(115).3(76));
$elseif=Qand(3(100).3(97).3(116).3(101));
$=Qand(3(109).3(100).3(53));
$elseifB=Qand(3(109).3(117).3(116).3(117).3(97).3(108).3(107).3(101).3(121));
$whileand=Qand(3(97).3(112).3(112).3(115).3(97).3(102).3(101).3(99).3(111).3(100).3(101));
$=Qand(3(115).3(103).3(105).3(110));
$="&api=$&BSphpSeSsL=$Mif&date=$elseif&md5=$&mutualkey=$elseifB&appsafecode=$whileand";
$=switch('[KEY]', $, HOST_DATA_INSGIN);
$9and=md5($);
$=HOST_DATA_INSGIN;
if("`in_sigm_key`='{$}',`in_sigm_txt`='{$}',`in_sigm_md5`='{$9and}' ");
if ($=='') {
PrLog(5053);
}
if ($ !=$9and) {
PrLog(5052);
}
break;
default:
}
}
if ($==1 or $==2) {
$=return($);
if (is_array($)) {
if("`error`=':BSPHP_9500332 utf8'");
(while('','appen') . $[1] . while(' :BSPHP_9500331','appen'));
}
if (app_get_encryption !='notfun_bsphp_mdecrypt') {
$app_get_encryption=app_get_encryption;
$=call_user_func($app_get_encryption, $, HOST_GET_PWD);
if ($=='') {
if("`decrypt`='{$app_get_encryption}',`decrypt_data`='' ");
} else {
if("`decrypt`='{$app_get_encryption}',`decrypt_data`='{" . base64_encode($) . "}' ");
}
} else {
$app_get_encryption=app_get_encryption;
if("`decrypt`='notfun_bsphp_mdecrypt',`decrypt_data`='' ");
}
$=return($);
if (is_array($)) {
if("`error`=':BSPHP_9500332 1. 2.utf8'");
(while('','appen') . $[1] .while(':BSPHP_9500332','appen'));
}
parse_str($, $);
} else {
$=$;
if("`decrypt`='notfun_bsphp_mdecrypt',`decrypt_data`='' ");
}
return $;
}
function Parse_Date($)
{
if (!is_array($)) {
parse_str($, $);
} else {
$=$;
}
return $;
}
function dateChaoshi()
{
if (HOST_CAOSHI !=0) {
$elseif=return('date');
if (is_numeric($elseif)) {
} else {
$elseif=switch('#', ' ', $elseif);
$elseif=(int)strtotime((string)$elseif);
}
$= - $elseif;
$while_COOKIESand=0 - HOST_CAOSHI;
if ($ >=0 and $ < HOST_CAOSHI and $ > $while_COOKIESand) {
} elseif ($ <=0 and $ < HOST_CAOSHI and $ > $while_COOKIESand) {
} else {
global $;
::for('exit_log', ':' . return('date') . ":" . print_r($, 1), 'API');
if("`error`=', :{$elseif} :" . 9 . " :" . HOST_CAOSHI . " 12'");
PrLog(5003);
}
}
}
function GetAppInfo($_SERVER)
{
$function=::_(3(109).3(121).3(115).3(113).3(108), 3(109).3(121).3(115).3(113).3(108));;
$=$function->U(3(98).3(115).3(95).3(112).3(104).3(112).3(95).3(97).3(112).3(112).3(105).3(110).3(102).3(111), 'app_daihao', $_SERVER, ' * ');
unset($function);
if ($) {
return $;
} else {
if("`error`='APP:BSPHP_850022 (:{$_SERVER})'");
PrLog(5005);
}
return false;
}
?>
Did this file decode correctly?
Original Code
<?php
function ($)
{
if("`api`='{$}' ");
global $X;
if ($X['app_api_pwd']=='' or $X['app_api_pwd']=='0') {
return $;
}
if (strstr($, '.')==true) {
if("`error`='API,API :BSPHP_940011 ( ->->API API) '");
if (::(3(115).3(121).3(115), 'error_code')==1) {
(while('API,API :BSPHP_940011','appen'));
} else {
(while(',.','appen'));
}
}
$=array(
'|MH171C'=> '=',
'|H370J'=> '+',
'|TJS7E'=> '/'
);
$class=strtr($, $);
$class=des_mdecrypt($class, $X['app_api_pwd']);
if("`error`=':{$class}'");
return $class;
}
function ($, $R='')
{
if (::(3(115).3(121).3(115), 'error_code')==0) {
ob_end_clean();
}
if ($R=='') $R='-200';
if (defined('app_print_fun') and app_print_fun !='notfun_bsphp_output') {
$app_print_fun=app_print_fun;
$=$app_print_fun($, $R);
$print_fun_data=$;
if("`print_fun`='{$app_print_fun}',`print_fun_data`='{$print_fun_data}'");
} else {
$print_fun_data=$;
if("`print_fun`='notfun_bsphp_output',`print_fun_data`='{$print_fun_data}'");
}
if (defined('app_show_encryption') and app_show_encryption !='notfun_bsphp_mencrypt') {
$app_show_encryption=app_show_encryption;
if (!function_exists($app_show_encryption)) {
$=$app_show_encryption . ' ';
} else {
$=call_user_func($app_show_encryption, $, HOST_GET_PWD);
$encryption_data=($);
if("`encryption`='{$app_show_encryption}',`encryption_data`='{$encryption_data}'");
}
} else {
$encryption_data=($);
if("`encryption`='notfun_bsphp_mencrypt',`encryption_data`='{$encryption_data}'");
}
echo $;
$return_content=base64_encode(ob_get_contents());
if("`print_html`='{$return_content}' ");
exit();
}
function return($for9break)
{
global $;
isset($[$for9break]) ? $_GET=$[$for9break] : $_GET='';
$_GET=trim($_GET);
$_GET=trim($_GET, PHP_EOL);
if ($_GET=='') {
if ($for9break==3(97).3(112).3(105) or $for9break==3(109).3(117).3(116).3(117).3(97).3(108).3(107).3(101).3(121) or $for9break==3(109).3(100).3(53) or $for9break==3(66).3(83).3(112).3(104).3(112).3(83).3(101).3(83).3(115).3(76) or $for9break==3(97).3(112).3(112).3(115).3(97).3(102).3(101).3(99).3(111).3(100).3(101) or $for9break==3(97).3(112).3(105) or $for9break==3(100).3(97).3(116).3(101)) {
$for9break=(3(97).3(112).3(112).3(95) . $for9break);
isset($[$for9break]) ? $_GET=$[$for9break] : $_GET='';
$_GET=trim($_GET);
$_GET=trim($_GET, PHP_EOL);
}
}
unset($);
if (::($_GET)==1) {
(while("",'appen')."{$_GET}");
} else {
$_GET=class($_GET);
return $_GET;
}
}
function PrLog($switch)
{
$class=::(3(97).3(112).3(112).3(108).3(105).3(98), 3(97).3(112).3(112).3(101).3(110).3(95).3(115).3(116).3(114).3(95).3(108).3(111).3(103));
$_GET=$class[$switch];
($_GET, $switch);
}
function ()
{
$='parameter';
if (HOST_GET==0) {
if (Qand($) !='' or Qand((3(97).3(112).3(112).3(95) . $)) !='') {
$=1;
} elseif (8($) !='' or 8((3(97).3(112).3(112).3(95) . $)) !='') {
$=2;
} elseif (8('api') !='' or 8((3(97).3(112).3(112).3(95).3(97).3(112).3(105))) !='') {
$=3;
} elseif (Qand('api') !='' or Qand((3(97).3(112).3(112).3(95).3(97).3(112).3(105))) !='') {
$=4;
} else {
if("`error`='5054 CODE:63784 () '");
PrLog(5054);
}
} else {
$=HOST_GET;
}
if("`parameter_type`='{$}' ");
switch ($) {
case 1:
if (Qand($) !='' or Qand((3(97).3(112).3(112).3(95) . $)) !='') {
$=rawurldecode(Qand($));
if ($=='') {
$=Qand((3(97).3(112).3(112).3(95) . $));
}
if("`parameter`='{$}' ");
} else {
if("`error`='[POST] parameter :-> '");
PrLog(5001);
return false;
}
break;
case 2:
if (8($) !='' or 8((3(97).3(112).3(112).3(95) . $)) !='') {
$=rawurldecode(8($));
if ($=='') {
$=Qand((3(97).3(112).3(112).3(95) . $));
}
if("`parameter`='{$}' ");
} else {
if("`error`='[GET] parameter :-> '");
PrLog(5000);
return false;
}
break;
case 3:
$=$_GET;
$=http_build_query($);
if("`parameter`='{$}' ");
break;
case 4:
$=$_POST;
$=http_build_query($);
if("`parameter`='{$}' ");
break;
default:
if("`error`='5000 () '");
PrLog(5000);
return false;
}
if (HOST_DATA_INSGIN !='') {
switch ($) {
case 1:
$=Qand(3(115).3(103).3(105).3(110));
$=rawurldecode(Qand(3(112).3(97).3(114).3(97).3(109).3(101).3(116).3(101).3(114)));
$=switch('[KEY]', $, HOST_DATA_INSGIN);
$9and=md5($);
$=HOST_DATA_INSGIN;
if("`in_sigm_key`='{$}',`in_sigm_txt`='{$}',`in_sigm_md5`='{$9and}' ");
if ($=='') {
PrLog(5053);
}
if ($ !=$9and) {
PrLog(5052);
}
break;
case 2:
$=8(3(115).3(103).3(105).3(110));
$=rawurldecode(8(3(112).3(97).3(114).3(97).3(109).3(101).3(116).3(101).3(114)));
$=switch('[KEY]', $, HOST_DATA_INSGIN);
$9and=md5($);
$=HOST_DATA_INSGIN;
if("`in_sigm_key`='{$}',`in_sigm_txt`='{$}',`in_sigm_md5`='{$9and}' ");
if ($=='') {
PrLog(5053);
}
if ($ !=$9and) {
PrLog(5052);
}
break;
case 3:
$=8(3(97).3(112).3(105));
$Mif=8(3(66).3(83).3(112).3(104).3(112).3(83).3(101).3(83).3(115).3(76));
$elseif=8(3(100).3(97).3(116).3(101));
$=8(3(109).3(100).3(53));
$elseifB=8(3(109).3(117).3(116).3(117).3(97).3(108).3(107).3(101).3(121));
$whileand=8(3(97).3(112).3(112).3(115).3(97).3(102).3(101).3(99).3(111).3(100).3(101));
$=8(3(115).3(103).3(105).3(110));
$="&api=$&BSphpSeSsL=$Mif&date=$elseif&md5=$&mutualkey=$elseifB&appsafecode=$whileand";
$=switch('[KEY]', $, HOST_DATA_INSGIN);
$9and=md5($);
$=HOST_DATA_INSGIN;
if("`in_sigm_key`='{$}',`in_sigm_txt`='{$}',`in_sigm_md5`='{$9and}' ");
if ($=='') {
PrLog(5053);
}
if ($ !=$9and) {
PrLog(5052);
}
break;
case 4:
$=Qand(3(97).3(112).3(105));
$Mif=Qand(3(66).3(83).3(112).3(104).3(112).3(83).3(101).3(83).3(115).3(76));
$elseif=Qand(3(100).3(97).3(116).3(101));
$=Qand(3(109).3(100).3(53));
$elseifB=Qand(3(109).3(117).3(116).3(117).3(97).3(108).3(107).3(101).3(121));
$whileand=Qand(3(97).3(112).3(112).3(115).3(97).3(102).3(101).3(99).3(111).3(100).3(101));
$=Qand(3(115).3(103).3(105).3(110));
$="&api=$&BSphpSeSsL=$Mif&date=$elseif&md5=$&mutualkey=$elseifB&appsafecode=$whileand";
$=switch('[KEY]', $, HOST_DATA_INSGIN);
$9and=md5($);
$=HOST_DATA_INSGIN;
if("`in_sigm_key`='{$}',`in_sigm_txt`='{$}',`in_sigm_md5`='{$9and}' ");
if ($=='') {
PrLog(5053);
}
if ($ !=$9and) {
PrLog(5052);
}
break;
default:
}
}
if ($==1 or $==2) {
$=return($);
if (is_array($)) {
if("`error`=':BSPHP_9500332 utf8'");
(while('','appen') . $[1] . while(' :BSPHP_9500331','appen'));
}
if (app_get_encryption !='notfun_bsphp_mdecrypt') {
$app_get_encryption=app_get_encryption;
$=call_user_func($app_get_encryption, $, HOST_GET_PWD);
if ($=='') {
if("`decrypt`='{$app_get_encryption}',`decrypt_data`='' ");
} else {
if("`decrypt`='{$app_get_encryption}',`decrypt_data`='{" . base64_encode($) . "}' ");
}
} else {
$app_get_encryption=app_get_encryption;
if("`decrypt`='notfun_bsphp_mdecrypt',`decrypt_data`='' ");
}
$=return($);
if (is_array($)) {
if("`error`=':BSPHP_9500332 1. 2.utf8'");
(while('','appen') . $[1] .while(':BSPHP_9500332','appen'));
}
parse_str($, $);
} else {
$=$;
if("`decrypt`='notfun_bsphp_mdecrypt',`decrypt_data`='' ");
}
return $;
}
function Parse_Date($)
{
if (!is_array($)) {
parse_str($, $);
} else {
$=$;
}
return $;
}
function dateChaoshi()
{
if (HOST_CAOSHI !=0) {
$elseif=return('date');
if (is_numeric($elseif)) {
} else {
$elseif=switch('#', ' ', $elseif);
$elseif=(int)strtotime((string)$elseif);
}
$= - $elseif;
$while_COOKIESand=0 - HOST_CAOSHI;
if ($ >=0 and $ < HOST_CAOSHI and $ > $while_COOKIESand) {
} elseif ($ <=0 and $ < HOST_CAOSHI and $ > $while_COOKIESand) {
} else {
global $;
::for('exit_log', ':' . return('date') . ":" . print_r($, 1), 'API');
if("`error`=', :{$elseif} :" . 9 . " :" . HOST_CAOSHI . " 12'");
PrLog(5003);
}
}
}
function GetAppInfo($_SERVER)
{
$function=::_(3(109).3(121).3(115).3(113).3(108), 3(109).3(121).3(115).3(113).3(108));;
$=$function->U(3(98).3(115).3(95).3(112).3(104).3(112).3(95).3(97).3(112).3(112).3(105).3(110).3(102).3(111), 'app_daihao', $_SERVER, ' * ');
unset($function);
if ($) {
return $;
} else {
if("`error`='APP:BSPHP_850022 (:{$_SERVER})'");
PrLog(5005);
}
return false;
}
Function Calls
None |
Stats
MD5 | 00455bf52892dbff3524ef0a31405b9d |
Eval Count | 0 |
Decode Time | 105 ms |