Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct arguement typos #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 5 additions & 5 deletions ExtensiveRoleCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ def get_argument_parser():
parser = argparse.ArgumentParser()
parser.add_argument('--clusterRole', type=str, required=False, help='ClusterRoles JSON file',)
parser.add_argument('--role', type=str, required=False, help='roles JSON file')
parser.add_argument('--rolebindings', type=str, required=False, help='RoleBindings JSON file')
parser.add_argument('--cluseterolebindings', type=str, required=False, help='ClusterRoleBindings JSON file')
parser.add_argument('--roleBindings', type=str, required=False, help='RoleBindings JSON file')
parser.add_argument('--clusterRoleBindings', type=str, required=False, help='ClusterRoleBindings JSON file')
return parser.parse_args()

# Read data from files
Expand Down Expand Up @@ -211,13 +211,13 @@ def print_rolebinding_results(self, sub, role_name, bind_kind):
extensive_roles = [result for result in extensiveRolesChecker.results if result not in extensive_ClusterRoles]
extensive_roles = extensive_roles + extensive_ClusterRoles

if args.cluseterolebindings:
if args.clusterRoleBindings:
print(f'{Fore.WHITE}[*] Started enumerating risky ClusterRoleBinding:')
bind_kind = 'ClusterRoleBinding'
clusterRoleBinding_json_file = open_file(args.cluseterolebindings)
clusterRoleBinding_json_file = open_file(args.clusterRoleBindings)
extensive_clusteRoleBindings = roleBingingChecker(clusterRoleBinding_json_file, extensive_roles, bind_kind)

if args.rolebindings:
if args.roleBindings:
print(f'{Fore.WHITE}[*] Started enumerating risky RoleRoleBindings:')
bind_kind = 'RoleBinding'
RoleBinding_json_file = open_file(args.rolebindings)
Expand Down