mirror of https://github.com/cowrie/cowrie.git
simplify env
This commit is contained in:
parent
d78d6c2399
commit
9b4ceab82b
|
@ -32,21 +32,11 @@ For complete documentation, run: info coreutils 'env invocation'
|
||||||
class command_env(HoneyPotCommand):
|
class command_env(HoneyPotCommand):
|
||||||
"""
|
"""
|
||||||
"""
|
"""
|
||||||
|
def call(self):
|
||||||
def done(self):
|
|
||||||
"""
|
|
||||||
"""
|
|
||||||
self.exit()
|
|
||||||
|
|
||||||
|
|
||||||
def start(self):
|
|
||||||
"""
|
"""
|
||||||
"""
|
"""
|
||||||
for i in list(self.environ.keys()):
|
for i in list(self.environ.keys()):
|
||||||
self.write("%s=%s\n" % (i,self.environ[i]))
|
self.write("%s=%s\n" % (i,self.environ[i]))
|
||||||
self.exit()
|
|
||||||
|
|
||||||
|
|
||||||
commands['/usr/bin/env'] = command_env
|
commands['/usr/bin/env'] = command_env
|
||||||
|
|
||||||
# vim: set sw=4 et tw=0:
|
|
||||||
|
|
Loading…
Reference in New Issue