mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
reboot should reset cwd
git-svn-id: https://kippo.googlecode.com/svn/trunk@91 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user