forked from iobush/aws-s3-bruteforce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search_obj.py
executable file
·30 lines (26 loc) · 1.2 KB
/
search_obj.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
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from progressbar import *
class SearchNames():
def __init__(self, bucket_names, num_buckets, threads, print_bucket_names, output_file, access_key, secret_key):
self.bucket_names = bucket_names
self.num_buckets = num_buckets
self.threads = threads
self.print_bucket_names = print_bucket_names
self.output_file = output_file
self.access_key = access_key
self.secret_key = secret_key
self.progress = ProgressBar(num_buckets)
class SearchStrings():
def __init__(self, num_chars, num_chars_range, string_options, threads, print_bucket_names, output_file, start_after_value, stop_at_value, prefix_postfix_option, access_key, secret_key):
self.num_chars = num_chars
self.num_chars_range = num_chars_range
self.string_options = string_options
self.threads = threads
self.print_bucket_names = print_bucket_names
self.output_file = output_file
self.access_key = access_key
self.secret_key = secret_key
self.start_after_value = start_after_value
self.stop_at_value = stop_at_value
self.prefix_postfix_option = prefix_postfix_option