From 19aa24bf3fd584d1528199ee4697c9ef9f2c6570 Mon Sep 17 00:00:00 2001 From: toma678 Date: Wed, 3 Jun 2015 23:39:05 +0100 Subject: [PATCH] Added '-c' support Just a small change to add '-c' support, as I notice many attackers are attempting to use this option, and failing, causing them to leave. --- kippo/commands/wget.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kippo/commands/wget.py b/kippo/commands/wget.py index 84cf1eb..a75b327 100644 --- a/kippo/commands/wget.py +++ b/kippo/commands/wget.py @@ -46,7 +46,7 @@ def splitthousands( s, sep=','): class command_wget(HoneyPotCommand): def start(self): try: - optlist, args = getopt.getopt(self.args, 'O:') + optlist, args = getopt.getopt(self.args, 'cO:') except getopt.GetoptError, err: self.writeln('Unrecognized option') self.exit() @@ -66,6 +66,8 @@ def start(self): for opt in optlist: if opt[0] == '-O': outfile = opt[1] + elif opt[0] == '-c': + pass if '://' not in url: url = 'http://%s' % url