mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-02-20 22:04:31 +01:00
Fixed shutdown command (#200)
This commit is contained in:
committed by
Michel Oosterhof
parent
9b4ceab82b
commit
641d7df7ec
@@ -380,7 +380,10 @@ class command_shutdown(HoneyPotCommand):
|
||||
self.protocol.cwd = '/root'
|
||||
if not self.fs.exists(self.protocol.cwd):
|
||||
self.protocol.cwd = '/'
|
||||
self.exit()
|
||||
stat = failure.Failure(error.ProcessDone(status=""))
|
||||
self.protocol.terminal.transport.processEnded(stat)
|
||||
|
||||
|
||||
commands['/sbin/shutdown'] = command_shutdown
|
||||
commands['/sbin/poweroff'] = command_shutdown
|
||||
commands['/sbin/reboot'] = command_shutdown
|
||||
|
||||
Reference in New Issue
Block a user