we need the full re.split for the field limitation

This commit is contained in:
Michel Oosterhof 2014-11-02 08:51:52 +00:00
parent 091197d92a
commit 7aa3505adc
1 changed files with 2 additions and 1 deletions

View File

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