Skip to content

Commit

Permalink
Push further consistency tweaks w/ 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yasinS committed Apr 9, 2017
1 parent 3ed36cf commit 49f70b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Here's how to get started:
```
usage: sandcastle.py [-h] -t targetStem [-f inputFile]
optional arguments:
arguments:
-h, --help show this help message and exit
-t targetStem, --target targetStem
Select a target stem name (e.g. 'instacart')
Expand Down
4 changes: 2 additions & 2 deletions sandcastle.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
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="Select a bucket permutation file (default: bucket-names.txt)", default="bucket-names.txt", metavar="inputFile")
help="Optional: 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]
lineCount = len(bucketNames)
print "[*] Commencing enumeration of target '%s', reading %i lines from '%s'." % (args.targetStem, lineCount, f.name)
# Analyse – standard permutations and special exceptions
# Enumerate – standard permutations and status code analysis
for name in bucketNames:
r = requests.head("http://%s%s.s3.amazonaws.com" % (args.targetStem, name))
if r.status_code != 404:
Expand Down

0 comments on commit 49f70b4

Please sign in to comment.