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:
desaster
2009-11-17 07:50:44 +00:00
parent e00b0c3c59
commit 92fe2cd850
4 changed files with 58 additions and 5 deletions

View File

@@ -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):