Enumeration using Pacu
Introduction
This is a Writup for challange lab from wonderful AWS Pentesting course by Tyler Ramsbay. I Highly Recommand you to take this course.
Get c00lrabbit’s stories in your inbox
Join Medium for free to get updates from this writer.
Course Link — Click Here
What is Pacu ?
- Pacu is an open-source AWS exploitation framework used for cloud penetration testing.
- It helps find weaknesses, like misconfigured permissions or exposed data.
- Think of it as a toolkit for checking how secure a cloud setup is.
Github repo link to download Pacu — Click Here
Configuring AWS Creds
aws configure --profile cybr
AWS Access Key ID [****************U2PR]: <Enter-The-Access-Key>
AWS Secret Access Key [****************It/y]: <Enter-The-Secret-Key>
Default region name [None]: <Enter-The-Region>
Default output format [json]: <Enter-The-Output-Format>
# You can name anything instead of cybr name doesn't matterCreating a new session
- If you are stating pacu for the first time it will ask you to enter a session name.
Importing Keys into Pacu
- We have configured the keys using the
aws configurecommand. We have to configure pacu to run command on the profile we have created here it is ‘cybr’. - By importing the keys we can run commands on the ‘cybr’ profile.
Pacu (Into-to-AWS:) import_keys <profile_name>
Pacu (Into-to-AWS:) import_keys cybrTo search for a module
- If you have used metasploit it is similar to search option.
- We can search through different modules.
Pacu (Into-to-AWS:imported-cybr) search <Name_of_The_Module>
Pacu (Into-to-AWS:imported-cybr) search iamFound a Modules used for Enumerating users, roles, policies and groups
- This module is used to Enumerate users, roles, policies and groups.
To run a Module
Pacu (Into-to-AWS:imported-cybr) run <Name_of_the_Module>
Pacu (Into-to-AWS:imported-cybr) run iam__enum_users_roles_policies_groupsPacu Database
- Pacu Database is where all the output of the command will be stored.
- We can filter a specific catagory like IAM To display only that
Pacu (Into-to-AWS:imported-cybr) data IAMConclusion
- Simple walkthrough about Enumerating using Pacu.
- Pacu make the enumeration process so easy and Fast if we have to enumerate these thing manually it would probally take 10 minutes but using pacu it took me just a minute.
Support me on ko-fi









