Username: 
Password: 
Restrict session to IP 
Questions  |  score: 2  |  Solved By 465 People  |  63364 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!
GeSHi`ed PHP code
1
2
3
4
56
7
8
9
1011
12
13
14
1516
17
18
19
2021
22
23
24
25
<?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 and 2017 by space