This commit is contained in:
Michel Oosterhof
2015-12-03 20:07:07 +00:00
parent 86a86d24df
commit 2a57f78e2b
2 changed files with 9 additions and 4 deletions

View File

@ -19,10 +19,12 @@ class command_faked_package_class_factory(object):
self.writeln("%s: Segmentation fault" % name) self.writeln("%s: Segmentation fault" % name)
return command_faked_installation return command_faked_installation
'''apt-get fake class command_aptget(HoneyPotCommand):
"""
apt-get fake
suppports only the 'install PACKAGE' command & 'moo'. suppports only the 'install PACKAGE' command & 'moo'.
Any installed packages, places a 'Segfault' at /usr/bin/PACKAGE.''' Any installed packages, places a 'Segfault' at /usr/bin/PACKAGE.'''
class command_aptget(HoneyPotCommand): """
def start(self): def start(self):
if len(self.args) == 0: if len(self.args) == 0:
self.do_help() self.do_help()

View File

@ -5,8 +5,11 @@ from cowrie.core.honeypot import HoneyPotCommand
commands = {} commands = {}
'''sleep'''
class command_sleep(HoneyPotCommand): class command_sleep(HoneyPotCommand):
"""
Sleep
"""
def done(self): def done(self):
self.exit() self.exit()