Created
July 31, 2017 12:13
-
-
Save CreateRemoteThread/1d1014bedad836d8cfeb287c23849e58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include "flag.php"; | |
$_403 = "Access Denied"; | |
$_200 = "Welcome Admin"; | |
if ($_SERVER["REQUEST_METHOD"] != "POST") | |
die("BugsBunnyCTF is here :p..."); | |
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); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment