o_o debug

This commit is contained in:
based
2023-11-18 00:40:42 +10:00
parent bdc5d45bcb
commit 3acb569a2a
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -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
+1
View File
@@ -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: