From 3e46f8fa3476440848f0e46077056114b8bd8692 Mon Sep 17 00:00:00 2001 From: slerena Date: Fri, 22 Feb 2013 13:31:29 +0000 Subject: [PATCH] 2013-02-22 Sancho Lerena * include/api.php: Added a single protection on DoS attacks. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7704 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/include/api.php | 3 +++ 2 files changed, 7 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 35055ebd01..9ee947efbf 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2013-02-22 Sancho Lerena + + * include/api.php: Added a single protection on DoS attacks. + 2013-02-22 Ramon Novoa * godmode/agentes/module_manager_editor_network.php, diff --git a/pandora_console/include/api.php b/pandora_console/include/api.php index 202427e293..01f5b63bbe 100644 --- a/pandora_console/include/api.php +++ b/pandora_console/include/api.php @@ -106,6 +106,9 @@ if ($correctLogin) { } else { db_pandora_audit("API access Failed", $no_login_msg, $user, $ipOrigin); + sleep (15); + + //Protection on DoS attacks echo 'auth error'; } ?>