用于从 CSP 标头解析域名的一个 Python 脚本

$ git clone [email protected]:yamakira/censys-enumeration.git
$ pipenv install
$ python csp_parser.py --help
2 ↵
Usage: csp_parser.py [OPTIONS] URL
Options:
-r, --resolve / --no-resolve Enable/Disable DNS resolution
--help Show this message and exit.
$ python csp_parser.py target_url
$ python csp_parser.py target_url --resolve
$ python csp_parser.py target_url -r