Skip to content

Commit

Permalink
simplify "format_list" structure
Browse files Browse the repository at this point in the history
  • Loading branch information
clarketm committed Feb 9, 2019
1 parent d36b83a commit 7a87a93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions s3recon/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
public_text = "PUBLIC"

format_list = [
"https://s3{region}.amazonaws.com/{word}{sep}{env}",
"https://s3{region}.amazonaws.com/{env}{sep}{word}",
# "https://{word}{sep}{env}.s3{region}.amazonaws.com",
# "https://{env}{sep}{word}.s3{region}.amazonaws.com",
"https://{region}.amazonaws.com/{word}{sep}{env}",
"https://{region}.amazonaws.com/{env}{sep}{word}",
# "https://{word}{sep}{env}.{region}.amazonaws.com",
# "https://{env}{sep}{word}.{region}.amazonaws.com",
]

useragent_list = [
Expand Down
2 changes: 1 addition & 1 deletion s3recon/s3recon.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def main(words, timeout, output, only_public):

url_list = {
f.format(
region=f".{region}" if region else "",
region=f"s3.{region}" if region else "s3",
word=word,
sep=sep if env else "",
env=env,
Expand Down

0 comments on commit 7a87a93

Please sign in to comment.