Skip to content

Instantly share code, notes, and snippets.

@saru2017
Last active June 15, 2019 01:17
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 saru2017/fa9b21ccffa2da60dd8ecab048fb4b17 to your computer and use it in GitHub Desktop.
Save saru2017/fa9b21ccffa2da60dd8ecab048fb4b17 to your computer and use it in GitHub Desktop.
CTF: http05.php
<?php
$name = $_COOKIE["name"];
$pass = $_COOKIE["pass"];
$flag = file_get_contents("/home/http05/flag.txt");
$flag = trim($flag);
if($name === "b3" && $pass === "watalab"){
echo($flag);
}else{
echo("login failed.");
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment