From 0548e4e8e3f774a92b8d7b47fb52ff793b57f033 Mon Sep 17 00:00:00 2001 From: Kc57 Date: Thu, 31 Dec 2015 07:35:40 -0500 Subject: [PATCH] Fixed logging of downloads to database Downloads were not logging to the database due to an incorrect number of parameters passed to VALUES --- cowrie/output/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cowrie/output/mysql.py b/cowrie/output/mysql.py index c5051b7..d64230d 100644 --- a/cowrie/output/mysql.py +++ b/cowrie/output/mysql.py @@ -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']))