mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-07 13:31:23 -07:00
Changed connection to SQlite db to support different encoded charsets
This commit is contained in:
parent
392257be36
commit
0fec40c3b4
1 changed files with 1 additions and 0 deletions
1
utils.py
1
utils.py
|
@ -166,6 +166,7 @@ def SaveToDb(result):
|
|||
logfile = os.path.join(settings.Config.ResponderPATH, 'logs', fname)
|
||||
|
||||
cursor = sqlite3.connect(settings.Config.DatabaseFile)
|
||||
cursor.text_factory = sqlite3.Binary
|
||||
res = cursor.execute("SELECT COUNT(*) AS count FROM responder WHERE module=? AND type=? AND LOWER(user)=LOWER(?)", (result['module'], result['type'], result['user']))
|
||||
(count,) = res.fetchone()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue