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

Fixes for iam__enum users/roles modules #268

Merged
merged 1 commit into from Jun 3, 2021

Conversation

RyanJarv
Copy link
Contributor

@RyanJarv RyanJarv commented Jun 2, 2021

  • Update the path of the default-word-list.txt file for the new
    pacu structure.
  • Other minor improvements.

* Update the path of the default-word-list.txt file for the new
  pacu structure.
* Other minor improvements.
@@ -111,7 +112,7 @@ def run(args, role_name, pacu_main, iam):
return data
else:
print(' Unhandled error: {}'.format(str(error)))
return data
raise error
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there's any reason to return the data here if the module fails, doing so also prevents the error from being logged.

@@ -159,7 +160,7 @@ def main(args, pacu_main):
iam: 'mypy_boto3_iam.IAMClient' = pacu_main.get_boto3_client('iam')

if args.role_name:
role_name = args.role_name
role_name = args.role_name.split('/')[-1] # Handle ARN's if that was passed for whatever reason.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works the same as before but handles cases where a role ARN was passed instead of a name.

@RyanJarv RyanJarv requested review from DaveYesland and a team June 3, 2021 16:37
@RyanJarv RyanJarv merged commit 21cd337 into RhinoSecurityLabs:master Jun 3, 2021
@RyanJarv RyanJarv deleted the bug/fix-iam__enum branch June 3, 2021 23:39
RyanJarv pushed a commit that referenced this pull request Aug 3, 2021
* Update the path of the default-word-list.txt file for the new
  pacu structure.
* Other minor improvements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants