Skip to content

Instantly share code, notes, and snippets.

@saru2017
Last active June 15, 2019 01:20
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/5717d11cdff58bf6e50aa194305a7ece to your computer and use it in GitHub Desktop.
Save saru2017/5717d11cdff58bf6e50aa194305a7ece to your computer and use it in GitHub Desktop.
CTF: http02
<?php
$name = $_POST["name"];
$pass = $_POST["pass"];
$flag = file_get_contents("/home/http02/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