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