forked from vvalorous/N0s3p4ss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
27 lines (22 loc) · 710 Bytes
/
main.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
from argparse import ArgumentParser
from n0s3p4ss.sniffer import sniff
from json import dumps
from n0s3p4ss.custom_json_logger import output_logger
IS_ENABLED = 1
if __name__ == '__main__':
argument_parser = ArgumentParser(
usage='pipenv run python3 main.py --domains "domain_1 domain_2 ..."'
)
required_arguments = argument_parser.add_argument_group(
'required arguments'
)
required_arguments.add_argument(
'--domains',
type=str,
required=True,
help='Domains to be analysed'
)
target_domains = argument_parser.parse_args().domains.split(" ")
output_logger.info(
dumps(sniff(target_domains), indent=IS_ENABLED)
)