An open API service indexing awesome lists of open source software.

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.

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
```

Buy Me A Coffee