mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-31 12:04:24 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user