limit shell input a bit

git-svn-id: https://kippo.googlecode.com/svn/trunk@248 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2014-05-18 16:53:32 +00:00
parent 42585c44c9
commit 5359da0ab7

View File

@@ -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)