Removed unneeded ;'s.

There is a small bug that needs to be fixed with the prompts showing multiple ties
This commit is contained in:
davegermiquet
2016-05-30 00:22:38 -04:00
parent 96dc66bad0
commit 50ca182671
2 changed files with 3 additions and 3 deletions

View File

@ -257,7 +257,7 @@ class HoneyPotShell(object):
environ[key] = value environ[key] = value
continue continue
cmd['command'] = piece cmd['command'] = piece
cmd['rargs'] = []; cmd['rargs'] = []
break break
if not cmd['command']: if not cmd['command']:
@ -267,7 +267,7 @@ class HoneyPotShell(object):
pipe_indices = [i for i, x in enumerate(cmdAndArgs) if x == "|"] pipe_indices = [i for i, x in enumerate(cmdAndArgs) if x == "|"]
multipleCmdArgs = [] multipleCmdArgs = []
pipe_indices.append(len(cmdAndArgs)) pipe_indices.append(len(cmdAndArgs))
start = 0; start = 0
# Gather all arguments with pipes # Gather all arguments with pipes

View File

@ -36,7 +36,7 @@ class HoneyPotBaseProtocol(insults.TerminalProtocol, TimeoutMixin):
else: else:
self.cwd = '/' self.cwd = '/'
self.input_data = None self.input_data = None
self.data = None; self.data = None
self.commands = {} self.commands = {}
import cowrie.commands import cowrie.commands
for c in cowrie.commands.__all__: for c in cowrie.commands.__all__: