Answer the question
In order to leave comments, you need to log in
I want to understand php code?
<?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>';
}
?>
Answer the question
In order to leave comments, you need to log in
"something\n--"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question