mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
typos
This commit is contained in:
+2
-2
@@ -689,11 +689,11 @@ def match_subdomains(domain, html, distinct=True, fuzzy=True):
|
||||
def check_random_subdomain(subdomains):
|
||||
if not subdomains:
|
||||
logger.log('ALERT', f'The generated dictionary is empty')
|
||||
return False
|
||||
return
|
||||
for subdomain in subdomains:
|
||||
if subdomain:
|
||||
logger.log('ALERT', f'Please check whether {subdomain} is correct or not')
|
||||
return True
|
||||
return
|
||||
|
||||
|
||||
def get_url_resp(url):
|
||||
|
||||
+1
-2
@@ -43,7 +43,7 @@ class MultiIdentify(Module):
|
||||
pool = Pool(processes_num)
|
||||
rules = self.load_rules()
|
||||
_identify = Identify(rules)
|
||||
for i in range(processes_num):
|
||||
for _ in range(processes_num):
|
||||
pool.apply_async(func=_identify.run, args=(task_queue, done_queue))
|
||||
pool.close()
|
||||
pool.join()
|
||||
@@ -116,7 +116,6 @@ class Identify(object):
|
||||
self.parse(item)
|
||||
banners = []
|
||||
for name, rule in self.RULES.items():
|
||||
# print(name)
|
||||
r = self._check_rule(rule)
|
||||
if r:
|
||||
if 'implies' in rule:
|
||||
|
||||
@@ -17,11 +17,6 @@ cdn_cname_keyword = utils.load_json(data_dir.joinpath('cdn_cname_keywords.json')
|
||||
cdn_header_key = utils.load_json(data_dir.joinpath('cdn_header_keys.json'))
|
||||
|
||||
|
||||
def check_cname_count(cnames):
|
||||
if len(cnames) > 1:
|
||||
return True
|
||||
|
||||
|
||||
def check_cname_keyword(cname):
|
||||
names = cname.lower().split(',')
|
||||
for name in names:
|
||||
|
||||
Reference in New Issue
Block a user