domains-from-csp
A Python script to parse domain names from CSP header
- A script to extract domain names from Content Security Policy(CSP) headers
- The output is print to stdout for now
Demo
Screenshots
3rd party package dependency
Setup
- Clone this repo
$ git clone [email protected]:yamakira/censys-enumeration.git
- Install dependencies
$ pipenv install
- Check help menu
$ 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.
Usage
- Parse the CSP header for domain names but don't do DNS resolution
$ python csp_parser.py target_url
- Parse the CSP header for domain names and also do DNS resolution
$ python csp_parser.py target_url --resolve
$ python csp_parser.py target_url -r