Files
cowrie/kippo/commands/dice.py
desaster 88d377cfc6 move core/ and commands/ to kippo/
git-svn-id: https://kippo.googlecode.com/svn/trunk@50 951d7100-d841-11de-b865-b3884708a8e2
2009-11-22 07:07:58 +00:00

46 lines
1.2 KiB
Python

# Copyright (c) 2009 Upi Tamminen <desaster@gmail.com>
# See the COPYRIGHT file for more information
# Random commands when running new executables
from kippo.core.honeypot import HoneyPotCommand
commands = {}
clist = []
class command_orly(HoneyPotCommand):
def start(self):
self.orly()
def orly(self):
self.writeln(' ___ ')
self.writeln(' {o,o}')
self.writeln(' |)__)')
self.writeln(' -"-"-')
self.write('O RLY? ')
def lineReceived(self, data):
if data.strip().lower() in ('ya', 'yarly', 'ya rly', 'yes', 'y'):
self.writeln(' ___')
self.writeln(' {o,o}')
self.writeln(' (__(|')
self.writeln(' -"-"-')
self.writeln('NO WAI!')
self.exit()
return
self.orly()
clist.append(command_orly)
class command_wargames(HoneyPotCommand):
def start(self):
self.write('Shall we play a game? ')
def lineReceived(self, data):
self.writeln('A strange game. ' + \
'The only winning move is not to play. ' + \
'How about a nice game of chess?')
self.exit()
clist.append(command_wargames)
# vim: set sw=4 et: