Exemplo n.º 1
0
    def to_blacklist(self, search_value):
        if search_value:
            if self.verbose:
                self.blacklist_dict.update({'McAfee': Mcafee().domain_to_blacklist(search_value)})

                return helpers.Common().verbose_output(search_value, From_domain.__name__, self.to_blacklist.__name__,
                                                       self.blacklist_dict)
            else:
                return helpers.Common().nonverbose_output(search_value, From_domain.__name__, self.to_blacklist.__name__,
                                                          str(Blacklist().domain_blacklist_check(search_value)))
Exemplo n.º 2
0
    def to_url(self, search_value):
        if search_value:
            self.url_dict.update({'Malwr': Malwr().domain_to_url(search_value)})
            self.url_dict.update({'Totalhash': Totalhash().domain_to_url(search_value)})

            if self.verbose:
                return helpers.Common().verbose_output(search_value, From_domain.__name__, self.to_url.__name__,
                                                       self.url_dict)
            else:
                return helpers.Common().nonverbose_output(search_value, From_domain.__name__, self.to_url.__name__,
                                                          self.url_dict)
Exemplo n.º 3
0
    def to_hash(self, search_value):
        if search_value:
            self.hash_dict.update({'Threatexpert': Threatexpert().mutex_to_hash(search_value)})
            self.hash_dict.update({'Totalhash': Totalhash().mutex_to_hash(search_value)})

            if self.verbose:
                return helpers.Common().verbose_output(search_value, From_mutex.__name__, self.to_hash.__name__,
                                                       self.hash_dict)
            else:
                return helpers.Common().nonverbose_output(search_value, From_mutex.__name__, self.to_hash.__name__,
                                                          self.hash_dict)
Exemplo n.º 4
0
    def to_score(self, search_value):
        if search_value:
            self.score_dict.update({'Malwr': Malwr().domain_to_score(search_value)})
            self.score_dict.update({'IBM': Ibmxforce().domain_to_score(search_value)})

            if self.verbose:
                return helpers.Common().verbose_output(search_value, From_domain.__name__, self.to_score.__name__,
                                                       self.score_dict)
            else:
                return helpers.Common().nonverbose_output(search_value, From_domain.__name__, self.to_score.__name__,
                                                          self.score_dict)
Exemplo n.º 5
0
    def to_imphash(self, search_value):
        if search_value:
            self.imphash_dict.update({'Malwr': Malwr().hash_to_imphash(search_value)})
            self.imphash_dict.update({'Metascan': Metascan().hash_to_imphash(search_value)})
            self.imphash_dict.update({'Totalhash': Totalhash().hash_to_imphash(search_value)})

            if self.verbose:
                return helpers.Common().verbose_output(search_value, From_hash.__name__, self.to_imphash.__name__,
                                                       self.imphash_dict)
            else:
                return helpers.Common().nonverbose_output(search_value, From_hash.__name__, self.to_imphash.__name__,
                                                          self.imphash_dict)
Exemplo n.º 6
0
    def to_score(self, search_value):
        if search_value:
            self.score_dict.update({'Malwr': Malwr().hash_to_score(search_value)})
            self.score_dict.update({'Metascan': Metascan().hash_to_score(search_value)})
            self.score_dict.update({'IBM': Ibmxforce().hash_to_score(search_value)})
            self.score_dict.update({'Virustotal': Virustotal().hash_to_score(search_value)})

            if self.verbose:
                return helpers.Common().verbose_output(search_value, From_hash.__name__, self.to_score.__name__,
                                                       self.score_dict)
            else:
                return helpers.Common().nonverbose_output(search_value, From_hash.__name__, self.to_score.__name__,
                                                          self.score_dict)
Exemplo n.º 7
0
    def to_domain(self, search_value):
        if search_value:
            self.domain_dict.update({'Threatexpert': Threatexpert().hash_to_domain(search_value)})
            self.domain_dict.update({'Totalhash': Totalhash().hash_to_domain(search_value)})
            self.domain_dict.update({'Threatcrowd': Threatcrowd().hash_to_domain(search_value)})


            if self.verbose:
                return helpers.Common().verbose_output(search_value, From_hash.__name__, self.to_domain.__name__,
                                                       self.domain_dict)
            else:
                return helpers.Common().nonverbose_output(search_value, From_hash.__name__, self.to_domain.__name__,
                                                          self.domain_dict)
Exemplo n.º 8
0
    def to_ipv4(self, search_value):
        if search_value:
            self.ip_dict.update({'IBM': Ibmxforce().hash_to_ipv4(search_value)})
            self.ip_dict.update({'Malwr': Malwr().hash_to_ipv4(search_value)})
            self.ip_dict.update({'Threatexpert': Threatexpert().hash_to_ipv4(search_value)})
            self.ip_dict.update({'Totalhash': Totalhash().hash_to_ipv4(search_value)})
            self.ip_dict.update({'Threatcrowd': Threatcrowd().hash_to_ipv4(search_value)})

            if self.verbose:
                return helpers.Common().verbose_output(search_value, From_hash.__name__, self.to_ipv4.__name__,
                                                       self.ip_dict)
            else:
                return helpers.Common().nonverbose_output(search_value, From_hash.__name__, self.to_ipv4.__name__,
                                                          self.ip_dict)
Exemplo n.º 9
0
    def to_blacklist(self, search_value):
        if search_value:
            if self.verbose:
                self.blacklist_dict.update({'Asprox': Asprox().ipv4_to_blacklist(search_value)})
                self.blacklist_dict.update({'Feodo': Feodo().ipv4_to_blacklist(search_value)})
                self.blacklist_dict.update({'Malc0de': Malc0de().ipv4_to_blacklist(search_value)})
                self.blacklist_dict.update({'Zeustracker': Zeustracker().ipv4_to_blacklist(search_value)})
                self.blacklist_dict.update({'McAfee': Mcafee().ipv4_to_blacklist(search_value)})

                return helpers.Common().verbose_output(search_value, From_ipv4.__name__, self.to_blacklist.__name__,
                                                       self.blacklist_dict)
            else:
                return helpers.Common().nonverbose_output(search_value, From_ipv4.__name__, self.to_blacklist.__name__,
                                                          str(Blacklist().ipv4_blacklist_check(search_value)))
Exemplo n.º 10
0
    def to_domain(self, search_value):
        if search_value:
            self.domain_dict.update({'Cymon': Cymon().ipv4_to_domain(search_value)})
            self.domain_dict.update({'Hostsfile': Hostsfile().ipv4_to_domain(search_value)})
            self.domain_dict.update({'IBM': Ibmxforce().ipv4_to_domain(search_value)})
            self.domain_dict.update({'Threatcrowd': Threatcrowd().ipv4_to_domain(search_value)})
            self.domain_dict.update({'Virustotal': Virustotal().ipv4_to_domain(search_value)})

            if self.verbose:
                return helpers.Common().verbose_output(search_value, From_ipv4.__name__, self.to_domain.__name__,
                                                       self.domain_dict)
            else:
                return helpers.Common().nonverbose_output(search_value, From_ipv4.__name__, self.to_domain.__name__,
                                                          self.domain_dict)
Exemplo n.º 11
0
    def to_url(self, search_value):
        if search_value:
            self.url_dict.update({'Cymon': Cymon().hash_to_url(search_value)})
            self.url_dict.update({'Malwr': Malwr().hash_to_url(search_value)})
            self.url_dict.update({'Threatexpert': Threatexpert().hash_to_url(search_value)})
            self.url_dict.update({'Totalhash': Totalhash().hash_to_url(search_value)})
            self.url_dict.update({'Virustotal': Virustotal().hash_to_url(search_value)})
            self.url_dict.update({'Threatcrowd': Threatcrowd().hash_to_url(search_value)})

            if self.verbose:
                return helpers.Common().verbose_output(search_value, From_hash.__name__, self.to_url.__name__,
                                                       self.url_dict)
            else:
                return helpers.Common().nonverbose_output(search_value, From_hash.__name__, self.to_url.__name__,
                                                          self.url_dict)