PHP 0819
space created another mini challenge.
Can you fulfil the constraints?
Happy Challenging!
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, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 and 2025 by
space