{"id":17225545,"url":"https://github.com/lc/cspparse","last_synced_at":"2025-04-14T00:53:28.240Z","repository":{"id":43197026,"uuid":"150456242","full_name":"lc/cspparse","owner":"lc","description":"A tool to evaluate Content Security Policies.","archived":false,"fork":false,"pushed_at":"2020-06-20T15:43:21.000Z","size":22,"stargazers_count":70,"open_issues_count":0,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T14:55:25.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.corben.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-26T16:24:09.000Z","updated_at":"2024-11-24T04:36:49.000Z","dependencies_parsed_at":"2022-08-23T23:21:21.039Z","dependency_job_id":null,"html_url":"https://github.com/lc/cspparse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lc%2Fcspparse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lc%2Fcspparse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lc%2Fcspparse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lc%2Fcspparse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lc","download_url":"https://codeload.github.com/lc/cspparse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804784,"owners_count":21164131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T04:13:52.557Z","updated_at":"2025-04-14T00:53:28.218Z","avatar_url":"https://github.com/lc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cspparse\r\n\r\n## Description\r\n\r\ncspparse 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 `\u003cmeta\u003e` tag\r\n\r\n## Installation\r\n\r\n### Install Command and Download Source With Go Get\r\n\r\n```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:\r\n\r\n```bash\r\n\r\n~ ❯ go get -u github.com/lc/cspparse\r\n\r\n```\r\n\r\n### Install from Source\r\n\r\n```bash\r\n\r\n~ ❯ git clone https://github.com/lc/cspparse\r\n~ ❯ cd cspparse\r\n~ ❯ go build \r\n\r\n```\r\n\r\n## Usage\r\n\r\n```bash\r\n\r\n~ ❯ cspparse \u003cdomain / url\u003e\r\n\r\n```\r\n\r\n### Example\r\n\r\n```bash\r\n\r\n~ ❯ cspparse https://www.facebook.com\r\n\r\n```\r\n\r\n### Docker\r\n\r\n```bash\r\n\r\n~ \u003e docker build -t cspparse .\r\n```\r\n\r\nRun\r\n```bash\r\n\r\n~ \u003e docker run --rm -t cspparse \u003cdomain / url\u003e\r\n```\r\n\r\n\r\n\u003ca href=\"http://buymeacoff.ee/cdl\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flc%2Fcspparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flc%2Fcspparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flc%2Fcspparse/lists"}