-
Notifications
You must be signed in to change notification settings - Fork 6
/
lazys3.py
40 lines (29 loc) · 1.12 KB
/
lazys3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# author: @Daniel_Abeles
# date: 26/06/18
import asyncio
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
from lazys3.scanner import Scanner
from lazys3.utils import banner
def parse_args():
print(banner())
parser = ArgumentParser(
description='Bruteforce AWS s3 buckets using different permutations',
formatter_class=ArgumentDefaultsHelpFormatter)
parser.add_argument(
'target', help='which target to scan')
parser.add_argument('-p', '--prefixes', help='prefixes file to use',
default='lists/common_bucket_prefixes.txt')
parser.add_argument('-l', '--limit', help='rate limit the http requests', default=100, type=int)
parser.add_argument('-u', '--user-agent', default='aiohttp client 0.17', type=str,
help='which user agent to use when sending requests')
return parser.parse_args()
def main():
args = parse_args()
Scanner(
wordlist_path=args.prefixes,
target=args.target,
rate_limit=args.limit,
user_agent=args.user_agent
).run()
if __name__ == "__main__":
main()