mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-12 16:13:04 -07:00
Merge pull request #68 from the-useless-one/cleartext_db_encoding
Cleartext db encoding
This commit is contained in:
commit
6e951c838a
1 changed files with 2 additions and 0 deletions
2
utils.py
2
utils.py
|
@ -171,6 +171,8 @@ def SaveToDb(result):
|
|||
logfile = os.path.join(settings.Config.ResponderPATH, 'logs', fname)
|
||||
|
||||
cursor = sqlite3.connect(settings.Config.DatabaseFile)
|
||||
# We add a text factory to support different charsets
|
||||
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