mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
PEP257
This commit is contained in:
@ -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
|
|
||||||
suppports only the 'install PACKAGE' command & 'moo'.
|
|
||||||
Any installed packages, places a 'Segfault' at /usr/bin/PACKAGE.'''
|
|
||||||
class command_aptget(HoneyPotCommand):
|
class command_aptget(HoneyPotCommand):
|
||||||
|
"""
|
||||||
|
apt-get fake
|
||||||
|
suppports only the 'install PACKAGE' command & 'moo'.
|
||||||
|
Any installed packages, places a 'Segfault' at /usr/bin/PACKAGE.'''
|
||||||
|
"""
|
||||||
def start(self):
|
def start(self):
|
||||||
if len(self.args) == 0:
|
if len(self.args) == 0:
|
||||||
self.do_help()
|
self.do_help()
|
||||||
|
|||||||
@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user