From 2c0cea1a3f3c60d73731fc9f910eabb60cb714d8 Mon Sep 17 00:00:00 2001 From: Ice3man543 Date: Sun, 6 Jun 2021 02:56:36 +0530 Subject: [PATCH] Changed name of flag --- v2/cmd/nuclei/main.go | 2 +- v2/internal/runner/runner.go | 6 +++--- v2/pkg/types/types.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/v2/cmd/nuclei/main.go b/v2/cmd/nuclei/main.go index 0ce15511c..6758a8557 100644 --- a/v2/cmd/nuclei/main.go +++ b/v2/cmd/nuclei/main.go @@ -85,7 +85,7 @@ based on templates offering massive extensibility and ease of use.`) set.IntVar(&options.PageTimeout, "page-timeout", 20, "Seconds to wait for each page in headless") set.BoolVarP(&options.NewTemplates, "new-templates", "nt", false, "Only run newly added templates") set.StringVarP(&options.DiskExportDirectory, "disk-export", "de", "", "Directory on disk to export reports in markdown to") - set.StringVarP(&options.SarifFile, "sarif-file", "sf", "", "File to export sarif report to") + set.StringVarP(&options.SarifExport, "sarif-export", "sf", "", "File to export sarif report to") set.BoolVar(&options.NoInteractsh, "no-interactsh", false, "Do not use interactsh server for blind interaction polling") set.StringVar(&options.InteractshURL, "interactsh-url", "https://interact.sh", "Interactsh Server URL") set.IntVar(&options.InteractionsCacheSize, "interactions-cache-size", 5000, "Number of requests to keep in interactions cache") diff --git a/v2/internal/runner/runner.go b/v2/internal/runner/runner.go index 45e7dce41..09bc95209 100644 --- a/v2/internal/runner/runner.go +++ b/v2/internal/runner/runner.go @@ -96,12 +96,12 @@ func New(options *types.Options) (*Runner, error) { reportingOptions.DiskExporter = &disk.Options{Directory: options.DiskExportDirectory} } } - if options.SarifFile != "" { + if options.SarifExport != "" { if reportingOptions != nil { - reportingOptions.SarifExporter = &sarif.Options{File: options.SarifFile} + reportingOptions.SarifExporter = &sarif.Options{File: options.SarifExport} } else { reportingOptions = &reporting.Options{} - reportingOptions.SarifExporter = &sarif.Options{File: options.SarifFile} + reportingOptions.SarifExporter = &sarif.Options{File: options.SarifExport} } } if reportingOptions != nil { diff --git a/v2/pkg/types/types.go b/v2/pkg/types/types.go index 1ae84d9b6..89cb701e4 100644 --- a/v2/pkg/types/types.go +++ b/v2/pkg/types/types.go @@ -47,8 +47,8 @@ type Options struct { ReportingConfig string // DiskExportDirectory is the directory to export reports in markdown on disk to DiskExportDirectory string - // SarifFile is the file to export sarif output format to - SarifFile string + // SarifExport is the file to export sarif output format to + SarifExport string // ResolversFile is a file containing resolvers for nuclei. ResolversFile string // StatsInterval is the number of seconds to display stats after