From 5359da0ab7bea993fc17136bf34e361352ba82e3 Mon Sep 17 00:00:00 2001 From: desaster Date: Sun, 18 May 2014 16:53:32 +0000 Subject: [PATCH] limit shell input a bit git-svn-id: https://kippo.googlecode.com/svn/trunk@248 951d7100-d841-11de-b865-b3884708a8e2 --- kippo/core/honeypot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kippo/core/honeypot.py b/kippo/core/honeypot.py index f4047d6..6e14808 100644 --- a/kippo/core/honeypot.py +++ b/kippo/core/honeypot.py @@ -65,7 +65,8 @@ class HoneyPotShell(object): def lineReceived(self, line): print 'CMD: %s' % line - for i in [x.strip() for x in line.strip().split(';')]: + line = line[:500] + for i in [x.strip() for x in line.strip().split(';')[:10]]: if not len(i): continue self.cmdpending.append(i)