Skip to content

Instantly share code, notes, and snippets.

@mikhail-chystsiakou
Created June 12, 2018 11:01
Show Gist options
  • Save mikhail-chystsiakou/0c78714d8d75871126aa82d5313bebe3 to your computer and use it in GitHub Desktop.
Save mikhail-chystsiakou/0c78714d8d75871126aa82d5313bebe3 to your computer and use it in GitHub Desktop.
hackme
<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