-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Nothing further to be done with this issue. Awaiting to be closed.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone
Description
360quake has detected 1.3 billion domain name service data in total, and most of the status codes are 200. I hope that the latest data will be used in the API call process so that the effect will be better!
import json
import requests
headers = {
"X-QuakeToken": "Your API Key",
"Content-Type": "application/json"
}
def get_subdomain(domain: str):
ret = []
query_string = f'domain: *.{domain}'
post_data = {
"query": query_string,
"include": ["service.http.host"],
# Reduce the amount of data transmitted by the network and improve the response speed
"size": 100,
"latest": True,
"ignore_cache": False,
# The latest data is the data after deduplication, and it is also relatively stable data at present
}
while True:
print('your query: ', json.dumps(post_data))
response = requests.post(url="https://quake.360.cn/api/v3/scroll/quake_service", headers=headers,
json=post_data)
result = response.json()
for data in result["data"]:
ret.append(data['service']['http']['host'])
pagination_id = result["meta"]["pagination_id"]
if not result["data"]:
break
post_data['pagination_id'] = pagination_id
return ret
if __name__ == '__main__':
for domain in get_subdomain('projectdiscovery.io'):
print(f'Found {domain}')
Metadata
Metadata
Assignees
Labels
Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Nothing further to be done with this issue. Awaiting to be closed.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.