b337f47935c2cb4cb42085f390a0dbeebdd95b47,modules/Gyoi_Inventory.py,Inventory,dns_explore,#Inventory#Any#,336

Before Change



        // Get Network addresses from each domain.
        for idx, target_fqdn in enumerate(target_fqdn_info["FQDN"]):
            tmp_dns_fqdn_list = []
            for option in self.nslookup_options:
                tmp_dns_fqdn_list.extend(self.execute_nslookup(target_fqdn, option, os_index, char_code))
                time.sleep(self.nslookup_delay_time)

            // Make server information.
            dns_fqdn_list = []
            for fqdn in tmp_dns_fqdn_list:
                dns_fqdn_list.append(fqdn.replace("\r", "").replace("\n", "").replace("\t", ""))
            target_fqdn_info["DNS info"][idx].extend(list(set(dns_fqdn_list)))

        self.utility.write_log(20, "[Out] Explore FQDN using DNS server [{}].".format(self.file_name))
        return target_fqdn_info

After Change


                    ip_adder = re.findall(self.nslookup_regex_ip[self.os_index], nslookup_result)
                dns_info[option] = nslookup_result
            else:
                self.utility.print_message(WARNING, "Executing nslookup is failure : option={}.".format(option))

            time.sleep(self.nslookup_delay_time)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: gyoisamurai/GyoiThon
Commit Name: b337f47935c2cb4cb42085f390a0dbeebdd95b47
Time: 2021-02-19
Author: null
File Name: modules/Gyoi_Inventory.py
Class Name: Inventory
Method Name: dns_explore


Project Name: 13o-bbr-bbq/machine_learning_security
Commit Name: 6ac6d52fef08f090a93252b8dae9117de7d0c840
Time: 2018-09-09
Author: takaesu235@gmail.com
File Name: Generator/generator.py
Class Name:
Method Name:


Project Name: gyoisamurai/GyoiThon
Commit Name: 4673937fdcb248168fdc25d49b74c5c8f35eed63
Time: 2019-03-13
Author: gyoiler3@gmail.com
File Name: modules/Gyoi_Creator.py
Class Name: Creator
Method Name: execute_grep