mirror of https://github.com/cowrie/cowrie.git
split on && and newline
This commit is contained in:
parent
806dfa194d
commit
091197d92a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue