Closed Dark-Aura closed 1 month ago
Use the list without the schema. I have already added this function to the check_service_takeover
function. The following loop adds the protocols (https:// and http://) to the subdomains before it start the scanning.
def check_service_takeover(subdomain, cname, service, output_file):
try:
for protocol in ['https://', 'http://']:
url = f"{protocol}{subdomain}"
print(f"Trying {url}")
....
Regarding s3.amazonaws.com, its the script discovers the AWS buckets by resolving the CNAME record for the subdomain using the get_cname
function. This function makes a DNS query to retrieve the CNAME record associated with the subdomain.
python3 subowner.py -f list.txt
In
list.txt
, the URLs contain either with or without a schema. Please let me know.For example:
cat list.txt https://github.com
or
cat list.txt github.com
Moreover, which tool are you using to identify and get
s3.amazonaws.com
as a subdomain list?If I run
subfinder
,amass
,findomain
, etc. I didn't get that. How did you gets3.amazonaws.com
inlist.txt
?