Skip to content

Commit

Permalink
fix(web/ez-rce): 消除警告
Browse files Browse the repository at this point in the history
* feat(web/ez-rce): 添加构建文件和题目信息

* ci(web/ez-rce): 添加工作流

* fix(web/ez-rce): 消除警告
  • Loading branch information
13m0n4de committed Sep 5, 2024
1 parent e7c5e58 commit ac4af51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions challenges/web/ez_rce/build/html/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

highlight_file(__FILE__);

$rce = $_GET['rce'];
if (preg_match("/flag|\\s/im", $rce)) {
if (preg_match("/flag|\\s/im", $_GET['rce'])) {
die("hacker!");
}
eval($rce);

eval($_GET['rce']);

0 comments on commit ac4af51

Please sign in to comment.