Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nof0rte/gocdp
Golang Content Discovery Parser. Parses and normalizes content discovery output
https://github.com/nof0rte/gocdp
fuzzing go golang infosec normalize web
Last synced: about 2 months ago
JSON representation
Golang Content Discovery Parser. Parses and normalizes content discovery output
- Host: GitHub
- URL: https://github.com/nof0rte/gocdp
- Owner: NoF0rte
- Created: 2022-02-16T15:56:48.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-06T20:47:43.000Z (about 1 year ago)
- Last Synced: 2024-10-22T16:58:37.513Z (3 months ago)
- Topics: fuzzing, go, golang, infosec, normalize, web
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gocdp
Golang Content Discovery Parser. Parses and normalizes content discovery output
# CLI
To install the CLI run the following
```
go install github.com/NoF0rte/gocdp/cmd/gocdp@latest
```## Examples
### Example 1
```
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
### Example 2
```
gocdp ffuf* -q '.IsRedirect' -f '{{.Redirect}}'
```
Show the redirect URLs from the results which were redirected
### Example 3
```
gocdp ffuf* -q '.IsRedirect' -f '{{.Url}} -> {{.Redirect}}'
```
Show the urls and where they redirect from the results which were redirected
### Example 4
```
gocdp ffuf* -q 'not (or .IsRateLimit .IsError)'
```
Show the JSON output of all results which weren't rate limited or errors
### Example 5
```
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
### Example 6
```
gocdp ffuf* -q '.IsStatus "409"'
```
Show the JSON output of only the results with the status code of 409
### Example 7
```
gocdp ffuf* -g range
```
Show the JSON output of all results, grouped by the status code ranges i.e. 200-299, 300-399, etc.
### Example 8
```
gocdp ffuf* -g status
```
Show the JSON output of all results, grouped by the status code# Library
To use `gocdp` as a library run the following
```
go get github.com/NoF0rte/gocdp
```
## Examples
```go
package main
import github.com/NoF0rte/gocdp
func main() {
results, err := gocdp.SmartParseFile("ffuf.json")
if err != nil {
panic(err)
}
fmt.Println(results)
}
```