Username: 
Password: 
Restrict session to IP 
Questions  |  score: 3  |  4.54 6.29 6.54 |  Solved By 524 People  |  66520 views  |  since Apr 18, 2012 - 19:43:48

PHP 0819 (PHP)

PHP 0819
space created another mini challenge.
Can you fulfil the constraints?

Happy Challenging!
PHP code
<?php
// closure, because of namespace!
$challenge = function()
{
$f = Common::getGetString('eval');
$f = str_replace(array('`', '$', '*', '#', ':', '\\', '"', "'", '(', ')', '.', '>'), '', $f);

if((strlen($f) > 13) || (false !== stripos($f, 'return')))
{
die('sorry, not allowed!');
}

try
{
eval("\$spaceone = $f");
}
catch (Exception $e)
{
return false;
}

return ($spaceone === '1337');
};
?>
© 2012, 2013, 2014, 2015, 2016, 2017 and 2018 by space