edoardottt/csprecon
소개
Content Security Policy를 사용해 새로운 대상 도메인을 찾아냅니다
보안 및 개인정보 보호측정된 스타 증가
- in 24h
- +1
- in 7 days
- +4
- in 15 days
- +4
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
csprecon
Discover new target domains using Content Security Policy
Coded with 💙 by edoardottt
Install • Get Started • Examples • Changelog • Contributing • License
Install 📡
Homebrew
brew install csprecon
Snap
sudo snap install csprecon
Go
go install github.com/edoardottt/csprecon/cmd/csprecon@latest
Get Started 🎉
Usage:
csprecon [flags]
Flags:
INPUT:
-u, -url string Input URL
-l, -list string File containing input URLs
-cidr Interpret input as CIDR
CONFIGURATIONS:
-d, -domain string[] Filter results belonging to these domains (comma separated)
-c, -concurrency int Concurrency level (default 50)
-t, -timeout int Connection timeout in seconds (default 10)
-rl, -rate-limit int Set a rate limit (per second)
-px, -proxy string Set a proxy server (URL)
BYPASS:
-b, -bypass Report known CSP bypass gadgets (CSPBypass dataset)
-bf, -bypass-file string Use a local data.tsv (CSPBypass format) instead of fetching
OUTPUT:
-o, -output string File to write output results
-v, -verbose Verbose output
-s, -silent Silent output. Print only results
-j, -json JSON output
Examples 💡
Grab all possible results from single URL
csprecon -u https://www.github.com
echo https://www.github.com | csprecon
Grab all possible results from a list of URLs
csprecon -l targets.txt
cat targets.txt | csprecon
Grab all possible results belonging to specific target(s) from a list of URLs
cat targets.txt | csprecon -d google.com
Grab all possible results from single CIDR
csprecon -u 192.168.1.0/24 -cidr
Set a rate limit of 10 requests per second
cat targets.txt | csprecon -rl 10
JSON Output
cat targets.txt | csprecon -j
Use a Proxy (http, https, socks5 or socks5h)
cat targets.txt | csprecon -px http://127.0.0.1:8080
Report known CSP bypass gadgets found in the target's CSP
csprecon -u https://www.github.com -b
Bring your own gadget list instead of fetching (CSPBypass data.tsv format)
csprecon -u https://www.github.com -bf ./data.tsv
[!NOTE] The gadget dataset comes from the CSPBypass project (GPL-3.0).
csprecon does not bundle it: with-bit is fetched at runtime from the upstream repository and cached locally per user (~/.cache/csprecon/or the OS equivalent), falling back to the cached copy if the fetch fails.
Credit to @renniepak and the CSPBypass contributors.
Changelog 📌
Detailed changes for each release are documented in the release notes.
Contributing 🛠
Just open an issue / pull request.
Before opening a pull request, download golangci-lint and run
golangci-lint run
If there aren't errors, go ahead :)
In the news 📰
- Hive Five Newsletter by Securibee
- Trickest
- Critical Thinking - Bug Bounty Podcast
- tl;dr sec Newsletter
License 📝
This repository is under MIT License.
edoardottt.com to contact me.
관련 프로젝트 살펴보기
불러오는 중…