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