S3#
The methodaws s3 family of commands provide information about an account's S3 buckets and their contents.
Usage#
methodaws s3 [command]
Available Commands#
- enumerate: Gather information about all S3 buckets the provided credentials have access to
- list: List all objects in a single S3 bucket
- external: Enumerate a public facing S3 bucket from an external perspective
Commands#
Enumerate#
The enumerate command will gather information about all of the S3 buckets that the provided credentials have access to.
Usage#
methodaws s3 enumerate --regions us-east-1 --output json
Help Text#
$ methodaws s3 enumerate -h
Enumerate all S3 buckets in your AWS account.
Usage:
methodaws s3 enumerate [flags]
Flags:
-h, --help help for enumerate
Global Flags:
-o, --output string Output format (signal, json). Default value is signal (default "signal")
-f, --output-file string Path to output file. If blank, will output to STDOUT
-q, --quiet Suppress output
-r, --regions stringArray AWS Regions to search for resources. You can specify multiple regions by providing the flag multiple times. If blank, will search all regions.
-v, --verbose Verbose output
list#
Usage#
methodaws s3 list --regions us-east-1 --output json --name <bucket name>
Help Text#
$ methodaws s3 list -h
List all objects in a single S3 bucket.
Usage:
methodaws s3 list [flags]
Flags:
-h, --help help for list
--name string Name of the S3 bucket
Global Flags:
-o, --output string Output format (signal, json). Default value is signal (default "signal")
-f, --output-file string Path to output file. If blank, will output to STDOUT
-q, --quiet Suppress output
-r, --regions stringArray AWS Regions to search for resources. You can specify multiple regions by providing the flag multiple times. If blank, will search all regions.
-v, --verbose Verbose output
external#
The external command attempts to enumerate a public facing S3 bucket with anonymous credentials from an external perspective.
Usage#
methodaws s3 external --url https://bucketname.s3.amazonaws.com --output json
Help Text#
$ methodaws s3 external -h
Enumerate a single public facing S3 bucket from an external prespective.
Usage:
methodaws s3 external [flags]
Flags:
-h, --help help for external
--region string Region of the S3 bucket
--url string URL of the S3 bucket
Global Flags:
-o, --output string Output format (signal, json). Default value is signal (default "signal")
-f, --output-file string Path to output file. If blank, will output to STDOUT
-q, --quiet Suppress output
-r, --regions stringArray AWS Regions to search for resources. You can specify multiple regions by providing the flag multiple times. If blank, will search all regions.
-v, --verbose Verbose output