From: Jerome Jutteau Date: Fri, 13 Nov 2015 20:56:06 +0000 (+0100) Subject: add a sleep() when a bad password is provided X-Git-Tag: 1.1~5^2 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/65a2f5a4f5d109f6292dbcac49026fe21e98b571?hp=4e94acfa77564a30dfda5a2fb57f978446265e6c add a sleep() when a bad password is provided --- diff --git a/f.php b/f.php index a272ad5..0218602 100644 --- a/f.php +++ b/f.php @@ -180,6 +180,7 @@ if (!empty ($link['key'])) $password_challenged = true; else { + sleep (2); require (JIRAFEAU_ROOT.'lib/template/header.php'); echo '

' . t('Access denied') . '

'; diff --git a/script.php b/script.php index cafd10c..b9a6e92 100644 --- a/script.php +++ b/script.php @@ -189,6 +189,7 @@ elseif (isset ($_GET['h'])) } if (strlen ($link['key']) > 0 && md5 ($key) != $link['key']) { + sleep (2); echo 'Error'; exit; }