Don't perform fake exit on certain SSH clients

git-svn-id: https://kippo.googlecode.com/svn/trunk@193 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2011-02-03 16:35:54 +00:00
parent 556a0962c5
commit b06ddcfced
2 changed files with 8 additions and 1 deletions

View File

@@ -43,7 +43,11 @@ commands['exxxit'] = command_exxxit
class command_exit(HoneyPotCommand):
def call(self):
#self.honeypot.terminal.loseConnection()
if 'PuTTY' in self.honeypot.clientVersion or \
'libssh' in self.honeypot.clientVersion or \
'sshlib' in self.honeypot.clientVersion:
self.honeypot.terminal.loseConnection()
return
self.honeypot.terminal.reset()
self.writeln('Connection to server closed.')
self.honeypot.hostname = 'localhost'