mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
Removed unneeded ;'s.
There is a small bug that needs to be fixed with the prompts showing multiple ties
This commit is contained in:
@ -257,7 +257,7 @@ class HoneyPotShell(object):
|
||||
environ[key] = value
|
||||
continue
|
||||
cmd['command'] = piece
|
||||
cmd['rargs'] = [];
|
||||
cmd['rargs'] = []
|
||||
break
|
||||
|
||||
if not cmd['command']:
|
||||
@ -267,7 +267,7 @@ class HoneyPotShell(object):
|
||||
pipe_indices = [i for i, x in enumerate(cmdAndArgs) if x == "|"]
|
||||
multipleCmdArgs = []
|
||||
pipe_indices.append(len(cmdAndArgs))
|
||||
start = 0;
|
||||
start = 0
|
||||
|
||||
# Gather all arguments with pipes
|
||||
|
||||
|
||||
@ -36,7 +36,7 @@ class HoneyPotBaseProtocol(insults.TerminalProtocol, TimeoutMixin):
|
||||
else:
|
||||
self.cwd = '/'
|
||||
self.input_data = None
|
||||
self.data = None;
|
||||
self.data = None
|
||||
self.commands = {}
|
||||
import cowrie.commands
|
||||
for c in cowrie.commands.__all__:
|
||||
|
||||
Reference in New Issue
Block a user