예제 #1
0
파일: module.py 프로젝트: yut0u/OneForAll
 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()
예제 #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
예제 #3
0
파일: finder.py 프로젝트: myxss/OneForAll
def match_subdomains(domain, text):
    subdomains = utils.match_subdomains(domain, text)
    logger.log('DEBUG', f'matched subdomains: {subdomains}')
    return subdomains
예제 #4
0
파일: module.py 프로젝트: myxss/OneForAll
 def match_subdomains(self, html, distinct=True, fuzzy=True):
     return utils.match_subdomains(self.domain, html, distinct, fuzzy)