Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
private function check_state($QA) { global $Rg; $OC = str_repla..
Decoded Output download
<? private function check_state($QA)
{
global $Rg;
$OC = str_replace("%3d", "=", urldecode($QA->get_query_param("state")));
if (empty($OC) && isset($_COOKIE["state_param"])) {
goto GIj;
}
if (isset($_GET["state"]) && !empty($_GET["state"])) {
goto ej8;
}
goto GS8;
GIj:
$OC = $_COOKIE["state_param"];
goto GS8;
ej8:
$OC = wp_unslash($_GET["state"]);
GS8:
$c8 = new StorageManager($OC);
$vR = $c8->get_value("appname");
$NY = $Rg->get_app_by_name($vR)->get_app_config();
$Xq = $NY["appId"];
$s2 = $Rg->get_app_by_name($Xq);
if (!is_wp_error($c8)) {
goto IU0;
}
$Rg->handle_error($c8->get_error_message());
wp_die(wp_kses($c8->get_error_message(), \mo_oauth_get_valid_html()));
IU0:
$Ll = $c8->get_value("uid");
if (!($Ll && MO_UID === $Ll)) {
goto ILh;
}
$this->appname = $c8->get_value("appname");
return $c8;
ILh:
return false;
}
?>
Did this file decode correctly?
Original Code
private function check_state($QA)
{
global $Rg;
$OC = str_replace("\x25\63\x64", "\75", urldecode($QA->get_query_param("\163\x74\x61\x74\x65")));
if (empty($OC) && isset($_COOKIE["\163\x74\141\164\145\x5f\x70\141\162\141\x6d"])) {
goto GIj;
}
if (isset($_GET["\x73\x74\141\x74\x65"]) && !empty($_GET["\163\x74\x61\x74\x65"])) {
goto ej8;
}
goto GS8;
GIj:
$OC = $_COOKIE["\163\164\x61\x74\145\137\160\x61\x72\x61\x6d"];
goto GS8;
ej8:
$OC = wp_unslash($_GET["\163\x74\141\164\145"]);
GS8:
$c8 = new StorageManager($OC);
$vR = $c8->get_value("\x61\x70\160\x6e\141\x6d\145");
$NY = $Rg->get_app_by_name($vR)->get_app_config();
$Xq = $NY["\141\160\160\111\x64"];
$s2 = $Rg->get_app_by_name($Xq);
if (!is_wp_error($c8)) {
goto IU0;
}
$Rg->handle_error($c8->get_error_message());
wp_die(wp_kses($c8->get_error_message(), \mo_oauth_get_valid_html()));
IU0:
$Ll = $c8->get_value("\x75\x69\x64");
if (!($Ll && MO_UID === $Ll)) {
goto ILh;
}
$this->appname = $c8->get_value("\x61\160\160\x6e\141\x6d\x65");
return $c8;
ILh:
return false;
}
Function Calls
None |
Stats
MD5 | 08feaf4376fb6bf6be4d0620ff7a0e25 |
Eval Count | 0 |
Decode Time | 47 ms |