From 3acb569a2a3477481fa931a2886b6d26d4724c3b Mon Sep 17 00:00:00 2001 From: based Date: Sat, 18 Nov 2023 00:40:42 +1000 Subject: [PATCH] o_o debug --- AWS.py | 5 +++-- main.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AWS.py b/AWS.py index 2920e42..cf4a356 100644 --- a/AWS.py +++ b/AWS.py @@ -17,11 +17,12 @@ def check_aws(key: APIKey): if username is not None: key.username = username - + print(f"Username: {username}") if policies is None: return for policy in policies: + print(f"Key has policy: {policy}") if "AdministratorAccess" in policy["PolicyName"]: key.admin_priv = True key.useless = False @@ -40,7 +41,7 @@ def check_aws(key: APIKey): return True except botocore.exceptions.ClientError as e: - # print(f"error occurred: {e}") usually thrown when a key cant list the policies + print(f"error occurred: {e}") return diff --git a/main.py b/main.py index 6bdb855..4b1396a 100644 --- a/main.py +++ b/main.py @@ -111,6 +111,7 @@ def validate_keys(): match = aws_regex.match(key) if not match: continue + print("Key passed regex check") key_obj = APIKey(Provider.AWS, key) futures.append(executor.submit(validate_aws, key_obj)) else: