Tool for analyzing the JSON output of gospider. Written in Go.
Find a file
2024-01-03 04:58:50 -06:00
main.go Initial commit: Working main and super basic readme. 2024-01-03 04:58:50 -06:00
README.md Initial commit: Working main and super basic readme. 2024-01-03 04:58:50 -06:00

Various functions for processing the output of gospider. Can be easily adapted for processing any newline-delimited JSON. e.g.

type GospiderJson struct {
    Input string `json:"input"`
    Source string `json:"source"`
    Type string `json:"type"`
    Output string `json:"output"`
    Status int `json:"status"`
    Length int `json:"length"`
}

func (gsjson GospiderJson) CheckOutputByFilter( regexpPointerSlice []*regexp.Regexp ) bool {
    for _ , regexpPointer := range( regexpPointerSlice ) {
        if regexpPointer.Match([]byte( gsjson.Output )) {
            return true
        }
    }
    return false
}