-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.py
56 lines (43 loc) · 1.76 KB
/
start.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/python3
# pylint: disable=unused-wildcard-import, method-hidden
import itertools
from bucket.utils import get_aws_ranges
from bucket.collections import *
from bucket.exporters import *
from bucket.bucketer import *
if __name__ == '__main__':
collections: [Collection] = list()
# aws_collection = AWSCollection()
# aws_collection.set_keywords(ranges=get_aws_ranges())
# collections.append(aws_collection)
collections.append(OWACollection())
collections.append(ClientCollection())
collections.append(NoneCollection())
collections.append(StagingCollection())
collections.append(BrochureCollection())
collections.append(VPNCollection())
collections.append(AuthCollection())
collections.append(EnvironmentCollection())
# collections.append(DNSCollection())
configuration: dict = {
"input_path": "targets.txt",
"collections": collections,
"get_source": False,
"resolve_dns": True,
"is_recursive": False,
"output_path": "./output/sources/"
}
bucketer: Bucketer = Bucketer(configuration=configuration)
bucketer.run()
processed_collections = bucketer.get_collections()
processed_pages = bucketer.get_pages()
try:
csv_exporter = CSVExporter(output_path='./output/output.csv')
csv_exporter.export(pages=processed_pages,
collections=processed_collections)
# json_exporter = JSONExporter(output_path='./output/output.json')
# json_exporter.export(collections=processed_collections)
# dns_exporter = DNSExporter(output_path='./output/output.csv')
# dns_exporter.export(pages=processed_pages, collections=processed_collections)
except NotImplementedError as e:
print(f"[x] {e}")