Awesome
<h1 align="center">csp-analyzer</h1> <h4 align="center">Analyze the Content-Security-Policy of a given URL.</h4> <p align="center"> <img src="https://img.shields.io/badge/python-v3-blue" alt="python badge"> <img src="https://img.shields.io/badge/license-MIT-green" alt="MIT license badge"> <a href="https://twitter.com/intent/tweet?text=https%3a%2f%2fgithub.com%2fgwen001%2fcsp-analyzer%2f" target="_blank"><img src="https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Fgithub.com%2Fgwen001%2Fcsp-analyzer" alt="twitter badge"></a> </p> <!-- <p align="center"> <img src="https://img.shields.io/github/stars/gwen001/csp-analyzer?style=social" alt="github stars badge"> <img src="https://img.shields.io/github/watchers/gwen001/csp-analyzer?style=social" alt="github watchers badge"> <img src="https://img.shields.io/github/forks/gwen001/csp-analyzer?style=social" alt="github forks badge"> </p> -->Description
This Python tool displays the Content-Security-Policy header of a given URL in a pretty way. The colors show the "severity" of the potential issue.
Install
git clone https://github.com/gwen001/csp-analyzer
cd csp-analyzer
pip3 install -r requirements.txt
Usage
$ python3 csp-analyzer.py <url> [<cookies>]
<img src="https://raw.githubusercontent.com/gwen001/csp-analyzer/main/preview.png" />
Feel free to open an issue if you have any problem with the script.