Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
public static function getResourceOwner($JP, $qC) { $k_ = curl_init($JP); ..
Decoded Output download
<? public static function getResourceOwner($JP, $qC)
{
$k_ = curl_init($JP);
curl_setopt($k_, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($k_, CURLOPT_ENCODING, '');
curl_setopt($k_, CURLOPT_RETURNTRANSFER, true);
curl_setopt($k_, CURLOPT_AUTOREFERER, true);
curl_setopt($k_, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($k_, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($k_, CURLOPT_MAXREDIRS, 10);
curl_setopt($k_, CURLOPT_POST, false);
curl_setopt($k_, CURLOPT_HTTPHEADER, array("Authorization: Bearer " . $qC));
$HG = curl_version();
curl_setopt($k_, CURLOPT_USERAGENT, "curl/" . $HG["version"]);
$nk = curl_exec($k_);
if (!curl_error($k_)) {
goto C1;
}
exit(curl_error($k_));
C1:
if (is_array(json_decode($nk, true))) {
goto qM;
}
exit("Invalid response received.");
qM:
$nk = json_decode($nk, true);
if (isset($nk["error_description"])) {
goto G4;
}
if (!isset($nk["error"])) {
goto Wi;
}
if (is_array($nk["error"])) {
goto bC;
}
echo $nk["error"];
goto PX;
bC:
print_r($nk["error"]);
PX:
exit;
Wi:
goto dc;
G4:
if (is_array($nk["error_description"])) {
goto b4;
}
echo $nk["error_description"];
goto gr;
b4:
print_r($nk["error_description"]);
gr:
exit;
dc:
return $nk;
} ?>
Did this file decode correctly?
Original Code
public static function getResourceOwner($JP, $qC)
{
$k_ = curl_init($JP);
curl_setopt($k_, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($k_, CURLOPT_ENCODING, '');
curl_setopt($k_, CURLOPT_RETURNTRANSFER, true);
curl_setopt($k_, CURLOPT_AUTOREFERER, true);
curl_setopt($k_, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($k_, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($k_, CURLOPT_MAXREDIRS, 10);
curl_setopt($k_, CURLOPT_POST, false);
curl_setopt($k_, CURLOPT_HTTPHEADER, array("\101\165\x74\x68\157\162\151\x7a\x61\x74\151\x6f\156\72\40\102\x65\x61\162\x65\x72\40" . $qC));
$HG = curl_version();
curl_setopt($k_, CURLOPT_USERAGENT, "\x63\165\162\x6c\57" . $HG["\166\145\162\x73\x69\x6f\x6e"]);
$nk = curl_exec($k_);
if (!curl_error($k_)) {
goto C1;
}
exit(curl_error($k_));
C1:
if (is_array(json_decode($nk, true))) {
goto qM;
}
exit("\x49\156\x76\x61\154\x69\x64\x20\162\x65\x73\160\157\x6e\x73\145\x20\162\145\x63\145\x69\x76\145\144\56");
qM:
$nk = json_decode($nk, true);
if (isset($nk["\x65\162\x72\157\x72\x5f\x64\x65\x73\x63\x72\x69\160\x74\151\157\156"])) {
goto G4;
}
if (!isset($nk["\x65\x72\162\x6f\162"])) {
goto Wi;
}
if (is_array($nk["\x65\162\162\157\162"])) {
goto bC;
}
echo $nk["\x65\x72\x72\157\x72"];
goto PX;
bC:
print_r($nk["\x65\x72\x72\x6f\162"]);
PX:
exit;
Wi:
goto dc;
G4:
if (is_array($nk["\145\x72\162\157\x72\137\x64\145\x73\x63\162\151\160\164\151\x6f\156"])) {
goto b4;
}
echo $nk["\x65\162\x72\157\x72\137\x64\145\163\143\162\x69\160\x74\151\157\x6e"];
goto gr;
b4:
print_r($nk["\145\x72\162\157\162\x5f\x64\x65\x73\143\x72\151\160\x74\x69\x6f\156"]);
gr:
exit;
dc:
return $nk;
}
Function Calls
None |
Stats
MD5 | ce906de1eff67ee61f50ef27bb9a8f57 |
Eval Count | 0 |
Decode Time | 40 ms |