From b96df7a5e83ebcbd645b04d411d15752757c7843 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 31 Jul 2016 22:43:25 +0300 Subject: [PATCH] Determine already captured hash by username and client IP address --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 36eedfb..a93325e 100644 --- a/utils.py +++ b/utils.py @@ -148,7 +148,7 @@ def SaveToDb(result): cursor = sqlite3.connect(settings.Config.DatabaseFile) cursor.text_factory = sqlite3.Binary # We add a text factory to support different charsets - res = cursor.execute("SELECT COUNT(*) AS count FROM responder WHERE module=? AND type=? AND LOWER(user)=LOWER(?)", (result['module'], result['type'], result['user'])) + res = cursor.execute("SELECT COUNT(*) AS count FROM responder WHERE module=? AND type=? AND client=? AND LOWER(user)=LOWER(?)", (result['module'], result['type'], result['client'], result['user'])) (count,) = res.fetchone() if not count: