From 742923f06169067f2be9276077a668996e0f95f0 Mon Sep 17 00:00:00 2001 From: Ted Mathew dela Cruz Date: Sat, 5 Sep 2020 21:55:31 +0800 Subject: [PATCH 1/2] Make mutations optional --- cloud_enum.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/cloud_enum.py b/cloud_enum.py index df07aa3..b374e13 100755 --- a/cloud_enum.py +++ b/cloud_enum.py @@ -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', @@ -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() @@ -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: From 6816c380f448e2b8c29aa9481f05b99175a1ecc2 Mon Sep 17 00:00:00 2001 From: tedmdelacruz Date: Mon, 21 Sep 2020 21:06:14 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9a772d4..5e2f95f 100644 --- a/README.md +++ b/README.md @@ -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! @@ -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.