mirror of https://github.com/cowrie/cowrie.git
we need the full re.split for the field limitation
This commit is contained in:
parent
091197d92a
commit
7aa3505adc
|
@ -5,6 +5,7 @@ import twisted
|
|||
from copy import deepcopy, copy
|
||||
import os
|
||||
import shlex
|
||||
import re
|
||||
|
||||
from twisted.python import log
|
||||
from kippo.core import fs
|
||||
|
@ -61,7 +62,7 @@ class HoneyPotShell(object):
|
|||
def lineReceived(self, line):
|
||||
log.msg( 'CMD: %s' % line )
|
||||
line = line[:500]
|
||||
for i in [x.strip() for x in split(';|&&|\n',line.strip())[:10]]:
|
||||
for i in [x.strip() for x in re.split(';|&&|\n',line.strip())[:10]]:
|
||||
if not len(i):
|
||||
continue
|
||||
self.cmdpending.append(i)
|
||||
|
|
Loading…
Reference in New Issue