Added new command: exxxit, which actually exits (for developer's purposes)

git-svn-id: https://kippo.googlecode.com/svn/trunk@111 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster 2010-05-29 12:42:42 +00:00
parent 590540178e
commit 3840cbbd04
1 changed files with 6 additions and 0 deletions

View File

@ -137,6 +137,12 @@ class command_echo(HoneyPotCommand):
self.writeln(' '.join(self.args)) self.writeln(' '.join(self.args))
commands['/bin/echo'] = command_echo commands['/bin/echo'] = command_echo
# for testing purposes
class command_exxxit(HoneyPotCommand):
def call(self):
self.honeypot.terminal.loseConnection()
commands['exxxit'] = command_exxxit
class command_exit(HoneyPotCommand): class command_exit(HoneyPotCommand):
def call(self): def call(self):
#self.honeypot.terminal.loseConnection() #self.honeypot.terminal.loseConnection()