请求异常也加入结果

This commit is contained in:
Jing Ling
2020-09-10 21:06:09 +08:00
parent d6e2c4c725
commit bc78e5950e
2 changed files with 8 additions and 2 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import re
import time
from urllib import parse
from requests import Response
from common import utils
from common import resolve
@@ -192,7 +193,7 @@ def find_subdomains(domain, data):
resp_data = request.bulk_request(js_urls)
for _, resp in resp_data:
if not resp:
if not isinstance(resp, Response):
continue
text = utils.decode_resp_text(resp)
subdomains.update(find_in_resp(domain, resp.url, text))