From 30e520754b36fce298ce09b86a9c9fb58afbd79a Mon Sep 17 00:00:00 2001 From: Ice3man Date: Fri, 22 Aug 2025 20:25:07 +0530 Subject: [PATCH 1/2] feat: fixed output event for skipped hosts (#6415) * feat: fixed output event for skipped hosts * misc --- pkg/operators/matchers/match.go | 3 +-- pkg/output/output.go | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/operators/matchers/match.go b/pkg/operators/matchers/match.go index e74270ef1..78bd40175 100644 --- a/pkg/operators/matchers/match.go +++ b/pkg/operators/matchers/match.go @@ -8,7 +8,6 @@ import ( "github.com/antchfx/htmlquery" "github.com/antchfx/xmlquery" - dslRepo "github.com/projectdiscovery/dsl" "github.com/projectdiscovery/gologger" "github.com/projectdiscovery/nuclei/v3/pkg/operators/common/dsl" "github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/expressions" @@ -316,7 +315,7 @@ func (m *Matcher) ignoreErr(err error) bool { if showDSLErr { 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 false diff --git a/pkg/output/output.go b/pkg/output/output.go index 571bff782..f7909320e 100644 --- a/pkg/output/output.go +++ b/pkg/output/output.go @@ -295,6 +295,10 @@ func (w *StandardWriter) ResultCount() int { // Write writes the event to file and/or screen. 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. if event.TemplatePath != "" { event.Template, event.TemplateURL = utils.TemplatePathURL(types.ToString(event.TemplatePath), types.ToString(event.TemplateID), event.TemplateVerifier) From 00f4595f0b8803043b1322c7f6f8ab6ea00d8425 Mon Sep 17 00:00:00 2001 From: PDTeamX <8293321+ehsandeep@users.noreply.github.com> Date: Fri, 22 Aug 2025 20:27:44 +0530 Subject: [PATCH 2/2] version update --- pkg/catalog/config/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/catalog/config/constants.go b/pkg/catalog/config/constants.go index a9de026d8..b820dc199 100644 --- a/pkg/catalog/config/constants.go +++ b/pkg/catalog/config/constants.go @@ -31,7 +31,7 @@ const ( CLIConfigFileName = "config.yaml" ReportingConfigFilename = "reporting-config.yaml" // Version is the current version of nuclei - Version = `v3.4.8` + Version = `v3.4.9` // Directory Names of custom templates CustomS3TemplatesDirName = "s3" CustomGitHubTemplatesDirName = "github"