yolo pushing

This commit is contained in:
cktricky
2018-04-16 13:40:12 -04:00
parent 0ea40aea05
commit 099707ae29
2 changed files with 14 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ def step_iam_get_account_summary():
iam_get_account_summary(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
def step_iam_list_users():
def step_iam_list_users(*args):
iam_list_users(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
def step_iam_check_root_account():

View File

@@ -24,6 +24,8 @@ parser.add_argument("-s", "--step", help="list the step you would like to run",
action="store", type=str, required=True)
parser.add_argument("-t", "--target", help="Give your target a name so we can track results",
action="store", type=str, required=True)
parser.add_argument("-a", "--arguments", help="Give your target a name so we can track results",
action="store", type=str, required=False)
parser.add_argument("-l", "--list", help="list steps", action="store_true")
parser.add_argument("-v", "--verbosity", help="increase output verbosity",
action="store_true")
@@ -58,12 +60,21 @@ else:
if (args.list):
pass
# arg_list has to be defined otherwise will cause an exception
arg_list = None
if (args.arguments):
arg_list = args.arguments.split(',')
# We need the user to tell us the step they want to proceed on
if (args.step):
arg = method_create()
if callable(arg):
arg()
if arg_list:
arg(arg_list)
else:
arg()
# Allow the user to specify verbosity for debugging