Skip to content

Commit

Permalink
Prettied
Browse files Browse the repository at this point in the history
  • Loading branch information
ob1lan committed Jan 16, 2024
1 parent 5dedbd8 commit 89802ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hunt_abandoned_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ async def get(domain, session):
if "NoSuchBucket" in text:
print("Might be an Abandoned Amazon S3 Bucket: ", url)
answer: \
dns.resolver.Answer = dns.resolver.resolve(domain.strip(), 'CNAME')
dns.resolver.Answer = dns.resolver.resolve(
domain.strip(), 'CNAME')
for rdata in answer:
print(" -> ", rdata)
findingsfile = open("findings.txt", "a", encoding="utf-8")
findingsfile = open(
"findings.txt", "a", encoding="utf-8")
findingsfile.write(url + "\n")
findingsfile.close()
except aiohttp.client_exceptions.ClientConnectorError:
Expand Down

0 comments on commit 89802ef

Please sign in to comment.