Skip to content

Commit

Permalink
v1.2.3 prep - change to input file method + fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yasinS committed Apr 9, 2017
1 parent 4d8d4c5 commit b204c0e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 23 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
All notable changes to the Sandcastle script will be documented in this file.

## 1.2.3 – 2017-04-09
- Fixes minor issues with `setup.py` classifiers
- Fixes additional issue with default `bucket-names.txt` import
- Due to PyPi issues, Sandcastle will not ship with a default `bucket-names.txt`.
* The example `bucket-names.txt` can be downloaded from this repo
* By default, Sandcastle searches for `bucket-names.txt` in the current directory
* As previously, use the `-f` flag to specify a different input file
- Removes "no match" display from Sandcastle script

## 1.2.2 – 2017-04-09
Expand Down
5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ The script takes a target name as the "stem" argument (e.g. `instacart`) and ite
## Getting started
Here's how to get started:
1. Install with Pip: `pip install sandcastle`
2. Run `sandcastle.py` with the appropriate arguments (below)
3. Permutations which exist will be tagged as "potential matches"
2. Run `sandcastle.py` with a target name and input file (grab an example from this repo)
3. Valid bucket permutations will be identified as "matches"

```
usage: sandcastle.py [-h] -t targetStem [-f inputFile]
Expand Down Expand Up @@ -69,7 +69,7 @@ From the Amazon [documentation](http://docs.aws.amazon.com/AmazonS3/latest/dev/U
> In terms of implementation, buckets and objects are resources, and Amazon S3 provides APIs for you to manage them.
## Closing remarks
* This is my first public security project on GitHub, and is published under the MIT License.
* This is my first public security project and package; Sandcastle is published under the MIT License.
* Usage acknowlegements:
* Castle (icon) by Andrew Doane from the Noun Project
* Nixie One (logo typeface) free by Jovanny Lemonad
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ Getting started
---------------

Here's how to get started: 1. Install with Pip:
``pip install sandcastle`` 2. Run ``sandcastle.py`` with the appropriate
arguments (below) 3. Permutations which exist will be tagged as
"potential matches"
``pip install sandcastle`` 2. Run ``sandcastle.py`` with a target name
and input file (grab an example from this repo) 3. Valid bucket
permutations will be identified as "matches"

::

Expand Down Expand Up @@ -92,8 +92,8 @@ You can then upload any number of objects to the bucket.
Closing remarks
---------------

- This is my first public security project on GitHub, and is published
under the MIT License.
- This is my first public security project and package; Sandcastle is
published under the MIT License.
- Usage acknowlegements:
- Castle (icon) by Andrew Doane from the Noun Project
- Nixie One (logo typeface) free by Jovanny Lemonad
6 changes: 1 addition & 5 deletions sandcastle.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@
S3 bucket enumeration // release v1.2.3 // ysx
"""
# Receive – target stem and argument check
_ROOT = os.path.abspath(os.path.dirname(__file__))
def get_data(path):
return os.path.join(_ROOT, 'data', path)
defaultFile = get_data('bucket-names.txt')
targetStem = ""
inputFile = ""
parser = ArgumentParser()
parser.add_argument("-t", "--target", dest="targetStem",
help="Select a target stem name (e.g. 'instacart')", metavar="targetStem", required="True")
parser.add_argument("-f", "--file", dest="inputFile",
help="Optional: select a bucket permutation file (default: bucket-names.txt)", default=defaultFile, metavar="inputFile")
help="Select a bucket permutation file (default: bucket-names.txt)", default="bucket-names.txt", metavar="inputFile")
args = parser.parse_args()
with open(args.inputFile, 'r') as f:
bucketNames = [line.strip() for line in f]
Expand Down
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
scripts=['sandcastle.py'],
url = 'https://github.com/yasinS/sandcastle',
download_url = 'https://github.com/yasinS/sandcastle/archive/1.2.3.tar.gz',
package_data={
'sandcastle': ['bucket-names.txt'],
},
keywords = ['amazons3', 'infosec', 'bucket'],
classifiers=[
"License :: OSI Approved :: MIT License",
Expand Down

0 comments on commit b204c0e

Please sign in to comment.