mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 17:15:30 +00:00
Merge remote-tracking branch 'origin'
This commit is contained in:
commit
a00b24d2c3
@ -31,7 +31,7 @@ const (
|
|||||||
CLIConfigFileName = "config.yaml"
|
CLIConfigFileName = "config.yaml"
|
||||||
ReportingConfigFilename = "reporting-config.yaml"
|
ReportingConfigFilename = "reporting-config.yaml"
|
||||||
// Version is the current version of nuclei
|
// Version is the current version of nuclei
|
||||||
Version = `v3.4.8`
|
Version = `v3.4.9`
|
||||||
// Directory Names of custom templates
|
// Directory Names of custom templates
|
||||||
CustomS3TemplatesDirName = "s3"
|
CustomS3TemplatesDirName = "s3"
|
||||||
CustomGitHubTemplatesDirName = "github"
|
CustomGitHubTemplatesDirName = "github"
|
||||||
|
|||||||
@ -8,7 +8,6 @@ import (
|
|||||||
"github.com/antchfx/htmlquery"
|
"github.com/antchfx/htmlquery"
|
||||||
"github.com/antchfx/xmlquery"
|
"github.com/antchfx/xmlquery"
|
||||||
|
|
||||||
dslRepo "github.com/projectdiscovery/dsl"
|
|
||||||
"github.com/projectdiscovery/gologger"
|
"github.com/projectdiscovery/gologger"
|
||||||
"github.com/projectdiscovery/nuclei/v3/pkg/operators/common/dsl"
|
"github.com/projectdiscovery/nuclei/v3/pkg/operators/common/dsl"
|
||||||
"github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/expressions"
|
"github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/expressions"
|
||||||
@ -316,7 +315,7 @@ func (m *Matcher) ignoreErr(err error) bool {
|
|||||||
if showDSLErr {
|
if showDSLErr {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if stringsutil.ContainsAny(err.Error(), "No parameter", dslRepo.ErrParsingArg.Error()) {
|
if stringsutil.ContainsAny(err.Error(), "No parameter", "error parsing argument value") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|||||||
@ -295,6 +295,10 @@ func (w *StandardWriter) ResultCount() int {
|
|||||||
|
|
||||||
// Write writes the event to file and/or screen.
|
// Write writes the event to file and/or screen.
|
||||||
func (w *StandardWriter) Write(event *ResultEvent) error {
|
func (w *StandardWriter) Write(event *ResultEvent) error {
|
||||||
|
if event.Error != "" && !w.matcherStatus {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// Enrich the result event with extra metadata on the template-path and url.
|
// Enrich the result event with extra metadata on the template-path and url.
|
||||||
if event.TemplatePath != "" {
|
if event.TemplatePath != "" {
|
||||||
event.Template, event.TemplateURL = utils.TemplatePathURL(types.ToString(event.TemplatePath), types.ToString(event.TemplateID), event.TemplateVerifier)
|
event.Template, event.TemplateURL = utils.TemplatePathURL(types.ToString(event.TemplatePath), types.ToString(event.TemplateID), event.TemplateVerifier)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user