-
-
Notifications
You must be signed in to change notification settings - Fork 127
/
cli.py
32 lines (26 loc) · 815 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
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 the list of subdomains 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(
"--commercial",
help="Don't limit search results (for commercial accounts)",
dest="commercial",
action="store_true",
default=False,
)