mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-02-20 05:44:26 +01:00
Fixed logging of downloads to database
Downloads were not logging to the database due to an incorrect number of parameters passed to VALUES
This commit is contained in:
@@ -146,7 +146,7 @@ class Output(cowrie.core.output.Output):
|
||||
elif entry["eventid"] == 'COW0007':
|
||||
self.simpleQuery('INSERT INTO `downloads`' + \
|
||||
' (`session`, `timestamp`, `url`, `outfile`, `shasum`)' + \
|
||||
' VALUES (%s, STR_TO_DATE(%s, %s), %s, %s)',
|
||||
' VALUES (%s, STR_TO_DATE(%s, %s), %s, %s, %s)',
|
||||
(entry["session"], entry["timestamp"], '%Y-%m-%dT%H:%i:%s.%fZ',
|
||||
entry['url'], entry['outfile'], entry['shasum']))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user