- substr: documentation ( source)
- strrev: documentation ( source)
- hexdec: documentation ( source)
- strtolower: documentation ( source)
- define: documentation ( source)
<?php
function decrypt($a)
{
$tmp = strtolower(strrev($a));
$tmps = (substr($tmp, 0,4) ^ hexdec('BFF')) ^ hexdec('D77D');
$tmpss = substr($tmp,4);
unset($unset_tmp);
}
define('__FLAG__', 'flag{hidden_flag}');
if(decrypt($_REQUEST['pass']) == 'pwning_the_phpreverse!')
{
__FLAG__;
}
?>