mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-02-23 15:24:30 +01:00
pass environment variables on to shell
This commit is contained in:
@@ -463,6 +463,9 @@ class HoneyPotSSHSession(session.SSHSession):
|
||||
raise ValueError("Bad data given in env request")
|
||||
log.msg(eventid='KIPP0013', format='request_env: %(name)s=%(value)s',
|
||||
name=name, value=value)
|
||||
# Environment variables come after shell or before exec command
|
||||
if self.session:
|
||||
self.session.environ[name] = value
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user