def populate_variables(self):
        self.used_env_strings = {}
        self.env_strings = ''
        self.env_vars = []
        
        self.used_path_string = {}
        self.path_string = ''
        
        self.start_loc = ''

        self.external_ip_mask = ''

        self.system_time = ''

        for key, value in self.config.iteritems():
            if key.lower() == 'env_var': 
                for _key, _value in value.iteritems():
                    # ok what's populated
                    if _value != '':
                        self.used_env_strings[_key] = _value.lower()
            if key.lower() == 'path':
                # just one path
                for _key, _value in value.iteritems():
                    if _value != '' and 'path' in _key and self.used_path_string == {}:
                        self.used_path_string[_key] = _value.lower().rstrip("\\")
                    elif _key == 'start_loc':
                        self.start_loc = _value.rstrip("\\")
                    else:
                        break
            if key.lower() == 'ip_ranges':
                for _key, _value in value.iteritems():
                    # have to handle multiple interfaces
                    if _value != '' and 'external_ip_mask' in _key:
                        self.external_ip_mask = _value.lower()

            if key.lower() == 'system_time':
                self.system_time = value['Time_Range']


        if self.used_env_strings == {}:
            print "[!] Environment variables not used as part of key"
        else:

            print "[*] Used environment variables:"
            
            for key, value in sorted(self.used_env_strings.items()):
                print "\t[-] environment value used: {0}, value used: {1}".format(key, value)
                self.env_strings += value
                self.env_vars.append(key)
            
        for key, value in sorted(self.used_path_string.items()):
            self.path_string += value
        
        if self.path_string != '':
            print "[*] Path string used as part of key:", self.path_string
        else:
            print "[!] Path string not used as pasrt of key"

        if self.external_ip_mask != '':
            print "[*] External IP mask used as part of key:", self.external_ip_mask
        else:
            print "[!] External IP mask NOT used as part of key"

        if self.system_time != '':
            print "[*] System time mask used as part of key:", self.system_time
        else:
            print "[!] System time mask NOT used as part of key"
dataset/ETHPy150Open Genetic-Malware/Ebowla/encryption/env.py/env_encrypt.populate_variables/original