reboot should reset cwd

git-svn-id: https://kippo.googlecode.com/svn/trunk@91 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2009-12-03 15:01:44 +00:00
parent 7ff3ce631b
commit ab137b2751

View File

@ -280,6 +280,7 @@ class command_reboot(HoneyPotCommand):
def finish(self): def finish(self):
self.writeln('Connection to server closed.') self.writeln('Connection to server closed.')
self.honeypot.hostname = 'localhost' self.honeypot.hostname = 'localhost'
self.honeypot.cwd = '/root'
self.exit() self.exit()
commands['/sbin/reboot'] = command_reboot commands['/sbin/reboot'] = command_reboot