Make exxxit only available if the client IP is 127.0.0.*

git-svn-id: https://kippo.googlecode.com/svn/trunk@221 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2012-11-10 14:44:50 +00:00
parent b53e8a65d1
commit 4fac0ac51e

View File

@@ -44,7 +44,10 @@ commands['/bin/echo'] = command_echo
# for testing purposes # for testing purposes
class command_exxxit(HoneyPotCommand): class command_exxxit(HoneyPotCommand):
def call(self): def call(self):
if self.honeypot.clientIP.startswith('127.0.0.'):
self.honeypot.terminal.loseConnection() self.honeypot.terminal.loseConnection()
else:
self.writeln('bash: exxxit: command not found')
commands['exxxit'] = command_exxxit commands['exxxit'] = command_exxxit
class command_exit(HoneyPotCommand): class command_exit(HoneyPotCommand):