Skip to content

Instantly share code, notes, and snippets.

@sohwendy
Created April 17, 2019 05:57
Show Gist options
  • Save sohwendy/d601618bf1ea525db26c12e4baeec2c6 to your computer and use it in GitHub Desktop.
Save sohwendy/d601618bf1ea525db26c12e4baeec2c6 to your computer and use it in GitHub Desktop.
$flag = "The Power is Yours";
if (isset($_POST["user"]) && isset($_POST["pass"])) {
$password = make_key($_POST["user"]);
sleep(5);
if (strcmp($password, $_POST["pass"]) == 0) {
echo "You are close, but no cigar! <br />";
if ($_POST["user"] == "127.0.0.1") {
echo "You got the flag, and the flag is: ".$flag."<br /> ";
}
} else { echo "Try again!"; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment