28 lines
994 B
Python
28 lines
994 B
Python
class CMEModule:
|
|
'''
|
|
Example
|
|
Module by @yomama
|
|
|
|
'''
|
|
|
|
name = 'Example'
|
|
|
|
def options(self, context, args):
|
|
'''Required. Module options get parsed here. Additionally, put the modules usage here as well'''
|
|
pass
|
|
|
|
def on_login(self, context, connection):
|
|
'''Concurrent. Required if on_admin_login is not present. This gets called on each authenticated connection'''
|
|
pass
|
|
|
|
def on_admin_login(self, context, connection):
|
|
'''Concurrent. Required if on_login is not present. This gets called on each authenticated connection with Administrative privileges'''
|
|
pass
|
|
|
|
def on_request(self, context, request):
|
|
'''Optional. If the payload needs to retrieve additonal files, add this function to the module'''
|
|
pass
|
|
|
|
def on_response(self, context, response):
|
|
'''Optional. If the payload sends back its output to our server, add this function to the module to handle its output'''
|
|
pass |