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
|
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
|
||||||
|
|
||||||
|
|||||||
@ -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__:
|
||||||
|
|||||||
Reference in New Issue
Block a user