From f896de88049f4da598b4e0f49564ed57aae06aa7 Mon Sep 17 00:00:00 2001 From: Noam Rathaus Date: Thu, 6 Jun 2024 12:45:37 +0300 Subject: [PATCH] /foorbar the URL of S3 to make it properly detect --- enum_tools/aws_checks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/enum_tools/aws_checks.py b/enum_tools/aws_checks.py index de8b10e..e60e751 100644 --- a/enum_tools/aws_checks.py +++ b/enum_tools/aws_checks.py @@ -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: @@ -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,