mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-18 22:44:29 +01:00
add fixme
This commit is contained in:
@@ -38,7 +38,7 @@ class HoneyPotSSHSession(session.SSHSession):
|
|||||||
raise ValueError("Bad data given in env request")
|
raise ValueError("Bad data given in env request")
|
||||||
log.msg(eventid='COW0013', format='request_env: %(name)s=%(value)s',
|
log.msg(eventid='COW0013', format='request_env: %(name)s=%(value)s',
|
||||||
name=name, value=value)
|
name=name, value=value)
|
||||||
# Environment variables come after shell or before exec command
|
# FIXME: This only works for shell, not for exec command
|
||||||
if self.session:
|
if self.session:
|
||||||
self.session.environ[name] = value
|
self.session.environ[name] = value
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user