mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-29 16:03:01 +00:00
* add flow logic * progress * working POC * fix string slice normalization issue in variables * update * fix nil panic * remove poll() * load file with sandbox and more * fix failing integration tests * JS: log: print in vardump format * fix missing id in protocols * fix proto prefix in template context * flow: add unit tests * conditional flow support using flow * fix proto callbacks + more unit tests * adds integration test * conditional flow: check if req has any matchers * fix lint error * deprecate iterate-all+ missing multi-proto implementation * fix ip input in raw request * JS: feat dedupe object+ more builtin funcs * feat: hide protocol result using hide * feat: async execution * complete async execution support * fix condition-flow without any matchers * refactor: template executer package (tmplexec) * flow executor working * fix data race in templateCtx * templateCtx redesign * fix failing unit test * add multiprotocol support to deprecated syntax * fix race condition in utils & tlsx * add documentation in flow package * remove regions.txt file * fix minor issue with self contained templates * fix typos of copilot * dep + misc update * fix reqID: use req.Type instead of template.Type --------- Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
24 lines
489 B
Go
24 lines
489 B
Go
package flow
|
|
|
|
import "github.com/projectdiscovery/nuclei/v2/pkg/operators"
|
|
|
|
// Checks if template has matchers
|
|
func hasMatchers(all []*operators.Operators) bool {
|
|
for _, operator := range all {
|
|
if len(operator.Matchers) > 0 {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|
|
|
|
// hasOperators checks if template has operators (i.e matchers/extractors)
|
|
func hasOperators(all []*operators.Operators) bool {
|
|
for _, operator := range all {
|
|
if operator != nil {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|