Skip to content
A tool to evaluate Content Security Policies.
Go Dockerfile Shell
Branch: master
Clone or download
Pull request Compare This branch is 1 commit behind lc:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
README.md
cspparse.go
install.sh

README.md

cspparse

Description

cspparse is a tool to evaluate Content Security Policies. It uses Google's API to retrieve the CSP Headers and returns them in ReconJSON format. Not only does it check for headers with Google's API, it also parses the target site's HTML to look for any CSP rules that are specified in the <meta> tag

Installation

Install Command and Download Source With Go Get

cspparse command will be installed to $GOPATH/bin and the source code (from https://github.com/lc/cspparse) will be found in $GOPATH/src/github.com/lc/cspparse with:

~ ❯ go get -u github.com/lc/cspparse

Install from Github Source

~ ❯ git clone https://github.com/lc/cspparse
~cd cspparse
~ ❯ chmod +x install.sh && ./install.sh

Usage

~ ❯ cspparse <domain / url>

Example

~ ❯ cspparse https://www.facebook.com

Docker

~ > docker build -t cspparse .

Run

~ > docker run --rm -t cspparse <domain / url>

Buy Me A Coffee

You can’t perform that action at this time.