上传文件至 src
This commit is contained in:
parent
daef7af821
commit
ef43fa1538
3
src/flag.php
Normal file
3
src/flag.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$flag = 'CTF{example_flag}';
|
||||
?>
|
16
src/index.php
Normal file
16
src/index.php
Normal 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';
|
||||
}
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user