mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-18 06:24:20 +01:00
Callback changes
New command: ssh git-svn-id: https://kippo.googlecode.com/svn/trunk@16 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -141,13 +141,13 @@ class command_pwd(HoneyPotCommand):
|
||||
class command_passwd(HoneyPotCommand):
|
||||
def call(self, args):
|
||||
self.honeypot.terminal.write('Enter new UNIX password: ')
|
||||
self.honeypot.next_callback = callback_passwd1
|
||||
self.callback = callback_passwd1
|
||||
self.honeypot.password_input = True
|
||||
|
||||
class callback_passwd1(HoneyPotCommand):
|
||||
def call(self, args):
|
||||
self.honeypot.terminal.write('Retype new UNIX password: ')
|
||||
self.honeypot.next_callback = callback_passwd2
|
||||
self.callback = callback_passwd2
|
||||
|
||||
class callback_passwd2(HoneyPotCommand):
|
||||
def call(self, args):
|
||||
|
||||
Reference in New Issue
Block a user