diff options
-rw-r--r-- | httpdocs/index.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/httpdocs/index.php b/httpdocs/index.php index a697be3..eb21166 100644 --- a/httpdocs/index.php +++ b/httpdocs/index.php @@ -29,7 +29,9 @@ function push_it() { } $saved_hash = trim(fgets($f)); fclose($f); - $entered_hash = hash('sha512', $_POST['password']); + $entered_hash = $_POST['password']; + for ($i=0; $i<1000; $i++) + $entered_hash = hash('sha512', $entered_hash . $i . $_POST['password']); if ($saved_hash != $entered_hash) { print '<font color="ff0000">Wrong password: ' . $entered_hash . '</font><br>' . "\n"; return; |