Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/foorbar the URL of S3 to make it properly detect #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion enum_tools/aws_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def print_s3_response(reply):
"""
data = {'platform': 'aws', 'msg': '', 'target': '', 'access': ''}

reply.url = reply.url.replace("/foobar", "")
if reply.status_code == 404:
pass
elif 'Bad Request' in reply.reason:
Expand Down Expand Up @@ -87,7 +88,7 @@ def check_s3_buckets(names, threads):

# Take each mutated keyword craft a url with the correct format
for name in names:
candidates.append(f'{name}.{S3_URL}')
candidates.append(f'{name}.{S3_URL}/foobar')

# Send the valid names to the batch HTTP processor
utils.get_url_batch(candidates, use_ssl=False,
Expand Down
Loading