Skip to content
Closed
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ cloudenum.py -k keyword -t 10

**Complete Usage Details**
```
usage: cloud_enum.py [-h] -k KEYWORD [-m MUTATIONS] [-b BRUTE]
usage: cloud_enum.py [-h] -k KEYWORD [-m fuzz.txt] [-b BRUTE]

Multi-cloud enumeration utility. All hail OSINT!

Expand All @@ -70,7 +70,7 @@ optional arguments:
-kf KEYFILE, --keyfile KEYFILE
Input file with a single keyword per line.
-m MUTATIONS, --mutations MUTATIONS
Mutations. Default: cloud_enum/mutations.txt.
Mutations.
-b BRUTE, --brute BRUTE
List to brute-force Azure container names. Default:
cloud_enum/brute.txt.
Expand Down
15 changes: 9 additions & 6 deletions cloud_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def parse_arguments():

# Use included mutations file by default, or let the user provide one
parser.add_argument('-m', '--mutations', type=str, action='store',
default=script_path + '/enum_tools/fuzz.txt',
help='Mutations. Default: enum_tools/fuzz.txt')
default=None,
help='Mutations. Default: None')

# Use include container brute-force or let the user provide one
parser.add_argument('-b', '--brute', type=str, action='store',
default=script_path + '/enum_tools/fuzz.txt',
help='List to brute-force Azure container names.'
help='List to brute-force container names.'
' Default: enum_tools/fuzz.txt')

parser.add_argument('-t', '--threads', type=int, action='store',
Expand All @@ -82,7 +82,7 @@ def parse_arguments():
args = parser.parse_args()

# Ensure mutations file is readable
if not os.access(args.mutations, os.R_OK):
if args.mutations and not os.access(args.mutations, os.R_OK):
print("[!] Cannot access mutations file: {}"
.format(args.mutations))
sys.exit()
Expand Down Expand Up @@ -210,8 +210,11 @@ def main():
check_windows()

# First, build a sort base list of target names
mutations = read_mutations(args.mutations)
names = build_names(args.keyword, mutations)
if args.mutations:
mutations = read_mutations(args.mutations)
names = build_names(args.keyword, mutations)
else:
names = args.keyword

# All the work is done in the individual modules
try:
Expand Down