重构泛解析探测

This commit is contained in:
Jing Ling
2020-08-23 02:49:56 +08:00
parent 6b8a609a9c
commit d159ece6a4
6 changed files with 358 additions and 131 deletions
+12
View File
@@ -741,3 +741,15 @@ def check_random_subdomain(subdomains):
if subdomain:
logger.log('ALERT', f'Please check whether {subdomain} is correct or not')
return True
def get_url_resp(url):
timeout = settings.request_timeout
verify = settings.request_verify
try:
resp = requests.get(url, params=None, timeout=timeout, verify=verify)
except Exception as e:
logger.log('DEBUG', f'Error request {url}')
logger.log('DEBUG', e.args)
return None
return resp