From 4d151df0ea927be3249ddb18ed3776a1bbfe3429 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Wed, 12 Aug 2015 16:22:30 -0700 Subject: [PATCH] Additional logging with data size --- cowrie/core/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cowrie/core/protocol.py b/cowrie/core/protocol.py index 6ac07b0..17c8d51 100644 --- a/cowrie/core/protocol.py +++ b/cowrie/core/protocol.py @@ -289,7 +289,7 @@ class LoggingServerProtocol(insults.ServerProtocol): ttylog.ttylog_write(transport.ttylog_file, len(data), ttylog.TYPE_INPUT, time.time(), data) if self.stdinlog_open and not noLog: - log.msg("Saving stdin log: %s" % self.stdinlog_file) + log.msg("Saving %s bytes to stdin log: %s" % ( len(data), self.stdinlog_file)) f = file(self.stdinlog_file, 'ab') f.write(data) f.close