Last active
June 15, 2019 01:20
-
-
Save saru2017/5717d11cdff58bf6e50aa194305a7ece to your computer and use it in GitHub Desktop.
CTF: http02
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 | |
$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