mirror of https://github.com/daffainfo/nuclei.git
fixed pitchfork validation
parent
701c999f8a
commit
fb18feea76
|
@ -49,10 +49,10 @@ func New(payloads map[string]interface{}, payloadType Type, templatePath string)
|
|||
if payloadType == PitchFork {
|
||||
var totalLength int
|
||||
for v := range compiled {
|
||||
if totalLength != 0 && totalLength != len(v) {
|
||||
if totalLength != 0 && totalLength != len(compiled[v]) {
|
||||
return nil, errors.New("pitchfork payloads must be of equal number")
|
||||
}
|
||||
totalLength = len(v)
|
||||
totalLength = len(compiled[v])
|
||||
}
|
||||
}
|
||||
return generator, nil
|
||||
|
|
Loading…
Reference in New Issue