Golang Content Discovery Parser. Parses and normalizes content discovery output
To install the CLI run the following
go install github.com/NoF0rte/gocdp/cmd/gocdp@latest
gocdp ffuf* -q '.IsSuccess' -f '{{.Url}}'
Or
find ./ -name '*ffuf*' | gocdp - -q '.IsSuccess' -f '{{.Url}}'
Show only the URLs from the results with success status codes
gocdp ffuf* -q '.IsRedirect' -f '{{.Redirect}}'
Show the redirect URLs from the results which were redirected
gocdp ffuf* -q '.IsRedirect' -f '{{.Url}} -> {{.Redirect}}'
Show the urls and where they redirect from the results which were redirected
gocdp ffuf* -q 'not (or .IsRateLimit .IsError)'
Show the JSON output of all results which weren't rate limited or errors
gocdp ffuf* -q 'not (.IsStatus "400,429,401")'
Show the JSON output of all results except the ones with status codes 400, 429, or 401
gocdp ffuf* -q '.IsStatus "409"'
Show the JSON output of only the results with the status code of 409
gocdp ffuf* -g range
Show the JSON output of all results, grouped by the status code ranges i.e. 200-299, 300-399, etc.
gocdp ffuf* -g status
Show the JSON output of all results, grouped by the status code
To use gocdp
as a library run the following
go get github.com/NoF0rte/gocdp
package main
import github.com/NoF0rte/gocdp
func main() {
results, err := gocdp.SmartParseFile("ffuf.json")
if err != nil {
panic(err)
}
fmt.Println(results)
}