diff --git a/README.md b/README.md index d27bcc5..88d81f1 100644 --- a/README.md +++ b/README.md @@ -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') diff --git a/sandcastle.py b/sandcastle.py index 60de9a5..05baaab 100755 --- a/sandcastle.py +++ b/sandcastle.py @@ -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: