split on && and newline

This commit is contained in:
Michel Oosterhof 2014-10-31 11:59:23 +00:00
parent 806dfa194d
commit 091197d92a
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class HoneyPotShell(object):
def lineReceived(self, line):
log.msg( 'CMD: %s' % line )
line = line[:500]
for i in [x.strip() for x in line.strip().split(';')[:10]]:
for i in [x.strip() for x in split(';|&&|\n',line.strip())[:10]]:
if not len(i):
continue
self.cmdpending.append(i)