mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-31 12:04:24 +01:00
Have wget assume urls should start with http://
git-svn-id: https://kippo.googlecode.com/svn/trunk@30 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -38,6 +38,10 @@ class command_wget(HoneyPotCommand):
|
||||
if arg.startswith('-'):
|
||||
continue
|
||||
url = arg.strip()
|
||||
break
|
||||
|
||||
if not url.startswith('http://'):
|
||||
url = 'http://%s' % url
|
||||
|
||||
if not url:
|
||||
self.writeln('wget: missing URL')
|
||||
|
||||
Reference in New Issue
Block a user