Created
June 12, 2018 11:01
-
-
Save mikhail-chystsiakou/0c78714d8d75871126aa82d5313bebe3 to your computer and use it in GitHub Desktop.
hackme
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
<html> | |
<head> | |
<title>Проверка пароля</title> | |
<link rel='stylesheet' href='style.css' type='text/css'> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<?php | |
require 'flag.php'; | |
if (isset ($_GET['password'])) { | |
if (ereg ("^[a-zA-Z0-9]+$", $_GET['password']) === FALSE) | |
echo '<p class="alert">You password must be alphanumeric</p>'; | |
else if (strpos ($_GET['password'], '--') !== FALSE) | |
die('Flag: ' . $flag); | |
else | |
echo '<p class="alert">Неверный пароль</p>'; | |
} | |
?> | |
<section class="login"> | |
<div class="title"> | |
<a href="./index.txt">Исходник</a> | |
</div> | |
<form method="get"> | |
<input type="text" required name="password" placeholder="Пароль" /><br/> | |
<input type="submit" value="Войти"/> | |
</form> | |
</section> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment