mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-17 22:14:19 +01:00
Do not store the same malware several times
this decreases disk space consumption + also log sha sum
This commit is contained in:
@@ -146,4 +146,9 @@ class DBLogger(dblog.DBLogger):
|
||||
' VALUES (%s, FROM_UNIXTIME(%s), %s, %s)',
|
||||
(session, self.nowUnix(), args['url'], args['outfile']))
|
||||
|
||||
def handleShaSum(self, session, args):
|
||||
self.simpleQuery('UPDATE `downloads` SET `shasum` = %s' + \
|
||||
' WHERE `outfile` = %s',
|
||||
(args['shasum'], args['outfile']))
|
||||
|
||||
# vim: set sw=4 et:
|
||||
|
||||
Reference in New Issue
Block a user