4.php变量覆盖.2

1.题目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
highlight_file(__FILE__);
include "flag.php";

$_403 = "拒绝访问";
$_200 = "欢迎~~~";

if ($_SERVER["REQUEST_METHOD"] != "POST")
die("sssssssspost…");

if ( !isset($_POST["flag"]) )
die($_403);

foreach ($_GET as $key => $value)
$$key = $$value;

foreach ($_POST as $key => $value)
$$key = $value;

if ( $_POST["flag"] !== $flag )
die($_403);

echo "This is your flag : ". $flag . "\n";
die($_200);

?>

:D 一言句子获取中...