mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-31 12:04:24 +01:00
Prevent cowrie from crashing on invalid host for wget (#429)
Thanks for submitting this!
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user