From 258168be8642d6906a5adbbeedf612150d90297b Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Sun, 4 Jun 2017 09:34:23 +0400 Subject: [PATCH] fallback if uniq option does not exist --- cowrie/commands/scp.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cowrie/commands/scp.py b/cowrie/commands/scp.py index fbb610f3..87c5a80e 100644 --- a/cowrie/commands/scp.py +++ b/cowrie/commands/scp.py @@ -56,7 +56,11 @@ class command_scp(HoneyPotCommand): """ """ self.download_path = self.protocol.cfg.get('honeypot', 'download_path') - self.download_path_uniq = self.protocol.cfg.get('honeypot', 'download_path_uniq') + + try: + self.download_path_uniq = self.protocol.cfg.get('honeypot', 'download_path_uniq') + except: + self.download_path_uniq = self.protocol.cfg.get('honeypot', 'download_path') try: optlist, args = getopt.getopt(self.args, 'tdv:')