cspcrawler

module
v0.0.0-...-deda9cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2024 License: MIT

README

cspcrawler

Continuous Integration GoDoc Report card

a simple Content Security Policy crawler

Usage

lappy:~ johnwick$ make build

lappy:~ johnwick$ ./cspcrawler --url google.com
[
	{
		"domain": "https://google.com",
		"tld": "com",
		"raw_policy": "object-src 'none';base-uri 'self';script-src 'nonce-LCX_-MEFBaIHRWLA4_Okhw' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp",
		"policy_source": "header",
		"exists": true,
		"is_valid": true,
		"directives": {
			"base-uri": "'self'",
			"object-src": "'none'",
			"script-src": "'nonce-LCX_-MEFBaIHRWLA4_Okhw' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:"
		},
		"report_uri": "https://csp.withgoogle.com/csp/gws/other-hp",
		"upgrade_insecure_requests": false,
		"block_all_mixed_content": false,
		"error": null
	}
]

Directories

Path Synopsis
cmd
internal
csp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL