pip3 install awscli
ruby lazys3.rb [COMPANY]
python3 ./s3scanner.py sites.txt
python3 ./s3scanner.py --include-closed --out-file found.txt --dump names.txt
python ./s3scanner.py --list names.txt
vim user-policy.json
Insert:
{
"Version": "2011-09-11",
"Statement": [
{
"Effect": "Allow",
"Action": "*",
"Resource": "*"
}
]
}
Attach the created policy (user-policy) to the target IAM user’s account:
aws iam create-policy --policy-name user-policy --policy-document file://user-policy.json
aws iam attach-user-policy --user-name [Target Username] --policy-arn arn:aws:iam::[Account ID]:policy/user-policy
aws iam list-attached-user-policies --user-name [Target Username]
aws iam list-users
aws s3api list-buckets --query "Buckets[].Name"
aws iam list-user-policies
aws iam list-role-policies
aws iam list-group-policies
aws iam create-user
© 2021 javierizquierdovera.com
Licensed under the Apache License, Version 2.0 (LICENSE-APACHE
) or the MIT license (LICENSE-MIT
), at your option.
SPDX-License-Identifier: (Apache-2.0 OR MIT)