Given a list of hosts, this small utility fetches all whitelisted domains from the hosts' CSPs. I use this for reconnaissance purposes while bug bounty hunting.
$ cat hosts.txt
http://example.com/
$ cat hosts.txt | csp
example.com
subdomain.example.com
...
Set concurrency level using the -c
flag.
$ csp -h
Usage of csp:
-c int
set the concurrency level (default 20)
$ cat hosts.txt | csp -c 2
...
$ go get -u github.com/edoverflow/csp
You can also download a binary and put it in your $PATH
(e.g. in /usr/bin/
).
I welcome contributions from the public.
The issue tracker is the preferred channel for bug reports and features requests.
The bug tracker utilizes several labels to help organize and identify issues.
Use the GitHub issue search — check if the issue has already been reported.
Thank you to @TomNomNom, @jimen0, and @003random for their help.