Ejemplo n.º 1
0
 def match_subdomains(self, resp, distinct=True, fuzzy=True):
     if not resp:
         return set()
     elif isinstance(resp, str):
         return utils.match_subdomains(self.domain, resp, distinct, fuzzy)
     elif hasattr(resp, 'text'):
         return utils.match_subdomains(self.domain, resp.text, distinct, fuzzy)
     else:
         return set()
Ejemplo n.º 2
0
def match_subdomains(domain, text):
    if isinstance(text, str):
        subdomains = utils.match_subdomains(domain, text, fuzzy=False)
    else:
        logger.log('DEBUG', f'abnormal object: {type(text)}')
        subdomains = set()
    logger.log('TRACE', f'matched subdomains: {subdomains}')
    return subdomains
Ejemplo n.º 3
0
def match_subdomains(domain, text):
    subdomains = utils.match_subdomains(domain, text)
    logger.log('DEBUG', f'matched subdomains: {subdomains}')
    return subdomains
Ejemplo n.º 4
0
 def match_subdomains(self, html, distinct=True, fuzzy=True):
     return utils.match_subdomains(self.domain, html, distinct, fuzzy)