上传文件至 src

This commit is contained in:
jiangsir 2024-07-24 21:33:04 +08:00
parent daef7af821
commit ef43fa1538
2 changed files with 19 additions and 0 deletions

3
src/flag.php Normal file
View File

@ -0,0 +1,3 @@
<?php
$flag = 'CTF{example_flag}';
?>

16
src/index.php Normal file
View File

@ -0,0 +1,16 @@
<?php
highlight_file(__FILE__);
if( $_POST['a']!==$_GET['b']&&md5($_POST['a']) === md5($_GET['b'])){
include 'flag.php';
echo $flag;
} else {
echo 'nononono';
}
?>