Pacu

Tool - Pacu Usage

Install and setup

$ pip3 install -U pacu
$ pacu

Setting the initial user access key

set_keys

Permission of current logged-in user

exec iam__enum_permissions
whoami

IAM Users Enumeration

run iam__enums --role-name <your assumed role> --account-id <account i

Valid IAM Roles

run iam__enum_roles --role-name <your role> --account-id <target account ID>

Bruteforce IAM permissions

run iam__bruteforce_permissions

Enumerate ec2 instance and get the public ip addresses

exec ec2__enum
data EC2

Enumerate privilege escalation permission and exploit it

exec iam__privesc_scan

Interesting Book

Interesting Books

Disclaimer: As an Amazon Associate, I earn from qualifying purchases. This helps support this GitBook project at no extra cost to you.

Last updated