Skip to main content

Bucket Finder

From Original Author:

Copyright(c) 2011, Robin Wood robin@digininja.org

This project goes alongside my blog post "Whats In Amazon's Buckets?" http://www.digininja.org/blog/whats_in_amazons_buckets.php , read through that for more information on what is going on behind the scenes.

This is a fairly simple tool to run, all it requires is a wordlist and it will go off and check each word to see if that bucket name exists in the Amazon's S3 system. Any that it finds it will check to see if the bucket is public, private or a redirect.

Public buckets are checked for directory indexing being enabled, if it is then all files listed will be checked using HEAD to see if they are public or private. Redirects are followed and the final destination checked. All this is reported on so you can later go through and analyse what has been found.

Version

1.0 - Release 1.1 - Added logging to file 1.2 - Fixed and added support for installation via PyPi (phx)

Installation

I don't think it needs anything more than the built in modules so you shouldn't need to install any gems. Just grab the file, make it executable and run it.

I've tested it in Ruby 1.8.7 and 1.9.1 so there should be no problems with versions.

Usage

Basic usage is simple, just start it with a wordlist:

bucketfinder my_words

and it will go off and do your bidding.

You can specify which region you want to run the initial check against by using the --region parameter:

bucketfinder --region ie my_words

The script will follow all redirects anyway so even if left at default, US Standard, everything will be found that can be found but if most of the buckets you are finding are in a different region then you'll be doing a lot of redirects so doubling your network traffic.

You can also specify the --download option to download all public files found. Be careful with this as there are a lot of large files out there. I'd personally do the general search then only use this option with a select subset of bucket names:

bucketfinder --download --region ie my_words

The files are downloaded into a folder with the bucket name and then the appropriate structure from the bucket.

As some people are having trouble piping the output to files or other apps I've added a logging option to send all output to a file. To use this just use the --log-file parameter:

bucketfinder --log-file bucket.out my_words

Licence

This project released under the following license:

Creative Commons Attribution-Share Alike 2.0 UK: England & Wales (CC BY-SA 2.0 UK)

Metadata

Release files for bucketfinder 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bucketfinder 1.2.3
File Size Uploaded
bucketfinder-1.2.3.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bucketfinder 1.2.3
File Interpreter ABI Platform
bucketfinder-1.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / bucketfinder-1.2.3.tar.gz

Download URL bucketfinder-1.2.3.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dbc670f7bcb78d39bfebbfd134f4991e658f79bd60e363f747500e2a926e2239
BLAKE2b-256 checksum
How to use checksums
e604fdc8551012750e87d434171c1ba26feefe5ab8396a18d19b0391922c104b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / bucketfinder-1.2.3-py3-none-any.whl

Download URL bucketfinder-1.2.3-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d2b61ffb6b715d8c84d0192e8af7cd6e653755e92b95656c16dd370aa669968
BLAKE2b-256 checksum
How to use checksums
347c4376115fa492b6a53ce04929fa63150f728991110aae53e62758bcfed717
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.2.3 This release

2 release files

1.2.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page