Skip to content

Instantly share code, notes, and snippets.

@CreateRemoteThread
Created July 31, 2017 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CreateRemoteThread/1d1014bedad836d8cfeb287c23849e58 to your computer and use it in GitHub Desktop.
Save CreateRemoteThread/1d1014bedad836d8cfeb287c23849e58 to your computer and use it in GitHub Desktop.
<?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