Skip to content

Commit

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

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

* fix(web/ez-rce): 消除警告

* fix(web/ez-rce): 修复警告
  • Loading branch information
13m0n4de authored Sep 5, 2024
1 parent f1b4c5a commit 93fd288
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions challenges/web/ez_rce/build/html/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

0 comments on commit 93fd288

Please sign in to comment.