上传文件至 src
This commit is contained in:
parent
39286cbb5e
commit
942da17110
25
src/index.php
Normal file
25
src/index.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
highlight_file('source.txt');
|
||||
echo "<br><br>";
|
||||
|
||||
$flag = 'FLAGFLAGFLAG';
|
||||
$kunkun = 'Give me the flag!';
|
||||
$ii = 'No this. Get out!';
|
||||
if(!isset($_GET['flag']) && !isset($_POST['flag'])){
|
||||
exit($kunkun);
|
||||
}
|
||||
|
||||
if($_POST['flag'] === 'flag' || $_GET['flag'] === 'flag'){
|
||||
exit($ii);
|
||||
}
|
||||
|
||||
foreach ($_POST as $key => $value) {
|
||||
$$key = $value;
|
||||
}
|
||||
|
||||
foreach ($_GET as $key => $value) {
|
||||
$$key = $$value;
|
||||
}
|
||||
|
||||
echo 'the flag is : ' . $flag;
|
27
src/source.txt
Normal file
27
src/source.txt
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
highlight_file('source.txt');
|
||||
echo "<br><br>";
|
||||
|
||||
$flag = 'xxxxxxxx';
|
||||
$kunkun = 'Give me the flag!';
|
||||
$ii = 'No this. Get out!';
|
||||
if(!isset($_GET['flag']) && !isset($_POST['flag'])){
|
||||
exit($kunkun);
|
||||
}
|
||||
|
||||
if($_POST['flag'] === 'flag' || $_GET['flag'] === 'flag'){
|
||||
exit($ii);
|
||||
}
|
||||
|
||||
foreach ($_POST as $key => $value) {
|
||||
$$key = $value;
|
||||
}
|
||||
|
||||
foreach ($_GET as $key => $value) {
|
||||
$$key = $$value;
|
||||
}
|
||||
|
||||
echo 'the flag is : ' . $flag;
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user