pass environment variables on to shell

This commit is contained in:
Michel Oosterhof
2015-12-09 16:38:00 +04:00
parent 69b88f43c1
commit a108f7bd69

View File

@@ -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