https://github.com/lc/cspparse
A tool to evaluate Content Security Policies.
https://github.com/lc/cspparse
Last synced: about 1 year ago
JSON representation
A tool to evaluate Content Security Policies.
- Host: GitHub
- URL: https://github.com/lc/cspparse
- Owner: lc
- Created: 2018-09-26T16:24:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-20T15:43:21.000Z (almost 6 years ago)
- Last Synced: 2025-03-27T14:55:25.380Z (about 1 year ago)
- Language: Go
- Homepage: https://www.corben.io
- Size: 21.5 KB
- Stars: 70
- Watchers: 4
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/ReconJSON/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 `` 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:
```bash
~ ❯ go get -u github.com/lc/cspparse
```
### Install from Source
```bash
~ ❯ git clone https://github.com/lc/cspparse
~ ❯ cd cspparse
~ ❯ go build
```
## Usage
```bash
~ ❯ cspparse
```
### Example
```bash
~ ❯ cspparse https://www.facebook.com
```
### Docker
```bash
~ > docker build -t cspparse .
```
Run
```bash
~ > docker run --rm -t cspparse
```
