diff --git a/cowrie/commands/wget.py b/cowrie/commands/wget.py index f09de95..c24cdb4 100644 --- a/cowrie/commands/wget.py +++ b/cowrie/commands/wget.py @@ -142,6 +142,9 @@ class command_wget(HoneyPotCommand): path = parsed.path or '/' if scheme != 'http' and scheme != 'https': raise NotImplementedError + if not host: + self.exit() + return None except: self.write('%s: Unsupported scheme.\n' % (url,)) self.exit()