-
-
Notifications
You must be signed in to change notification settings - Fork 361
/
cli.py
34 lines (28 loc) · 825 Bytes
/
cli.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
import argparse
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument(
'domain',
help = 'The domain to scan'
)
parser.add_argument(
'-o', '--output',
help = 'A file to output likely origin servers to',
dest = 'output_file'
)
parser.add_argument(
'--censys-api-id',
help = 'Censys API ID. Can also be defined using the CENSYS_API_ID environment variable',
dest = 'censys_api_id'
)
parser.add_argument(
'--censys-api-secret',
help = 'Censys API secret. Can also be defined using the CENSYS_API_SECRET environment variable',
dest = 'censys_api_secret'
)
parser.add_argument(
'--cloudfront',
help = 'Check Cloudfront instead of CloudFlare.',
dest = 'use_cloudfront',
action='store_true',
default=False
)