change default port 80 to 80,443 and fix fofa_api module

This commit is contained in:
change default timeout
2020-06-17 18:32:08 +08:00
parent a7bd4e2360
commit 771502cc2c
2 changed files with 4 additions and 6 deletions
+2 -1
View File
@@ -21,7 +21,7 @@ class FoFa(Search):
发送搜索请求并做子域匹配
"""
self.page_num = 1
subdomain_encode = f'domain={self.domain}'.encode('utf-8')
subdomain_encode = f'domain={self.domain} || cert={self.domain}'.encode('utf-8')
query_data = base64.b64encode(subdomain_encode)
while True:
time.sleep(self.delay)
@@ -31,6 +31,7 @@ class FoFa(Search):
'key': self.key,
'qbase64': query_data,
'page': self.page_num,
'full': 'true',
'size': 10000}
resp = self.get(self.addr, query)
if not resp: