@@ -0,0 +1,2410 @@
+class Module:%0A%0A    def __init__(self, mainMenu, params=%5B%5D):%0A%0A        # metadata info about the module, not modified during runtime%0A        self.info = %7B%0A            # name for the module that will appear in module menus%0A            'Name': 'Background Example',%0A%0A            # list of one or more authors for the module%0A            'Author': %5B'@Killswitch-GUI'%5D,%0A%0A            # more verbose multi-line description of the module%0A            'Description': ('A quick example how to feed your data to a background job.'),%0A%0A            # True if the module needs to run in the background%0A            'Background' : True,%0A%0A            # File extension to save the file as%0A            'OutputExtension' : '',%0A%0A            # if the module needs administrative privileges%0A            'NeedsAdmin' : False,%0A%0A            # True if the method doesn't touch disk/is reasonably opsec safe%0A            'OpsecSafe' : False,%0A%0A            # list of any references/other comments%0A            'Comments': %5B %5D%0A        %7D%0A%0A        # any options needed by the module, settable during runtime%0A        self.options = %7B%0A            # format:%0A            #   value_name : %7Bdescription, required, default_value%7D%0A            'Agent' : %7B%0A                # The 'Agent' option is the only one that MUST be in a module%0A                'Description'   :   'Agent to execute module on.',%0A                'Required'      :   True,%0A                'Value'         :   ''%0A            %7D%0A        %7D%0A%0A        # save off a copy of the mainMenu object to access external functionality%0A        #   like listeners/agent handlers/etc.%0A        self.mainMenu = mainMenu%0A%0A        # During instantiation, any settable option parameters%0A        #   are passed as an object set to the module and the%0A        #   options dictionary is automatically set. This is mostly%0A        #   in case options are passed on the command line%0A        if params:%0A            for param in params:%0A                # parameter format is %5BName, Value%5D%0A                option, value = param%0A                if option in self.options:%0A                    self.options%5Boption%5D%5B'Value'%5D = value%0A%0A    def generate(self):%0A%0A        script = %22%22%22%0Ax = 0%0Awhile True:%0A    import time%0A    try:%0A        time.sleep(2)%0A        msg = 'NOW inside buffer at message: ' + str(x) + '%5C%5Cn'%0A        job_message_buffer(msg)%0A        x += 1%0A    except Exception as e:%0A        print e%0A%22%22%22%0A%0A        return script%0A

Create jobs-template.py