mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-18 14:34:22 +01:00
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:
@@ -44,7 +44,10 @@ commands['/bin/echo'] = command_echo
|
||||
# for testing purposes
|
||||
class command_exxxit(HoneyPotCommand):
|
||||
def call(self):
|
||||
if self.honeypot.clientIP.startswith('127.0.0.'):
|
||||
self.honeypot.terminal.loseConnection()
|
||||
else:
|
||||
self.writeln('bash: exxxit: command not found')
|
||||
commands['exxxit'] = command_exxxit
|
||||
|
||||
class command_exit(HoneyPotCommand):
|
||||
|
||||
Reference in New Issue
Block a user