def __init__(self, config, payload, payload_type, minus_bytes, output_type, key_iterations,cleanup=False):
        self.org_payload = payload
        self.config = config
        self.payload = open(payload, 'r').read()
        print "[*] Payload length", len(self.payload)
        self.lookup_table = ''
        self.payload_type = payload_type
        self.minus_bytes = int(minus_bytes)
        self.key_iterations = int(key_iterations)
        self.output_type = output_type
        self.payload_loader = ''
        self.payload_stack = ''
        self.payload_call_stack = ''
        self.go_payload_loader = ''
        self.go_payload_stack = ''
        self.go_payload_call_stack = ''
        self.payload_imports = ''
        self.cleanup = cleanup
        self.go_imports = set()
        self.set_payload()
        if output_type in ['python', 'both']:
            if 'dll' in self.payload_type.lower():
                print "[X] No DLL Support for python"
                sys.exit(-1)
        self.hash_payload()
        self.populate_variables()
        self.find_key_encrypt()
        if self.output_type == 'python':
            self.gen_pyloader()
        elif self.output_type == 'go':
            self.gen_goloader()
        elif self.output_type == 'both':
            self.gen_pyloader()
            self.gen_goloader()
dataset/ETHPy150Open Genetic-Malware/Ebowla/encryption/env.py/env_encrypt.__init__/original