mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
This commit is contained in:
@@ -211,6 +211,8 @@ class AIOBrute(Module):
|
|||||||
|
|
||||||
def deal_results(self, results):
|
def deal_results(self, results):
|
||||||
for result in results:
|
for result in results:
|
||||||
|
if result is None:
|
||||||
|
continue
|
||||||
if isinstance(result, Exception):
|
if isinstance(result, Exception):
|
||||||
# logger.log('DEBUG', f'爆破{subdomain}时出错 {str(answers)}')
|
# logger.log('DEBUG', f'爆破{subdomain}时出错 {str(answers)}')
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -51,12 +51,20 @@ async def aiodns_query_a(hostname, semaphore=None):
|
|||||||
"""
|
"""
|
||||||
if semaphore is None:
|
if semaphore is None:
|
||||||
resolver = aiodns_resolver()
|
resolver = aiodns_resolver()
|
||||||
answers = await resolver.query(hostname, 'A')
|
try:
|
||||||
|
answers = await resolver.query(hostname, 'A')
|
||||||
|
except BaseException as e:
|
||||||
|
logger.log('DEBUG', e.args)
|
||||||
|
answers = None
|
||||||
return hostname, answers
|
return hostname, answers
|
||||||
else:
|
else:
|
||||||
async with semaphore:
|
async with semaphore:
|
||||||
resolver = aiodns_resolver()
|
resolver = aiodns_resolver()
|
||||||
answers = await resolver.query(hostname, 'A')
|
try:
|
||||||
|
answers = await resolver.query(hostname, 'A')
|
||||||
|
except BaseException as e:
|
||||||
|
logger.log('DEBUG', e.args)
|
||||||
|
answers = None
|
||||||
return hostname, answers
|
return hostname, answers
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user