diff --git a/challenges/web/ez_rce/build/html/index.php b/challenges/web/ez_rce/build/html/index.php index 2b6625d..80879fd 100644 --- a/challenges/web/ez_rce/build/html/index.php +++ b/challenges/web/ez_rce/build/html/index.php @@ -2,8 +2,9 @@ highlight_file(__FILE__); -if (preg_match("/flag|\\s/im", $_GET['rce'])) { - die("hacker!"); +if (isset($_GET["rce"])) { + if (preg_match("/flag|\\s/im", $_GET['rce'])) { + die("hacker!"); + } + eval($_GET['rce']); } - -eval($_GET['rce']);