diff --git a/cmd/integration-test/profile-loader.go b/cmd/integration-test/profile-loader.go index 6d02d9a95d..177bd9955c 100644 --- a/cmd/integration-test/profile-loader.go +++ b/cmd/integration-test/profile-loader.go @@ -16,12 +16,12 @@ var profileLoaderTestcases = []TestCaseInfo{ type profileLoaderByRelFile struct{} func (h *profileLoaderByRelFile) Execute(testName string) error { - results, err := testutils.RunNucleiWithArgsAndGetResults(false, "-tl", "-tp", "kev.yml") + results, err := testutils.RunNucleiWithArgsAndGetResults(false, "-tl", "-tp", "cloud.yml") if err != nil { return errorutil.NewWithErr(err).Msgf("failed to load template with id") } - if len(results) < 267 { - return fmt.Errorf("incorrect result: expected more results than %d, got %v", 267, len(results)) + if len(results) < 100 { + return fmt.Errorf("incorrect result: expected more results than %d, got %v", 100, len(results)) } return nil } @@ -29,12 +29,12 @@ func (h *profileLoaderByRelFile) Execute(testName string) error { type profileLoaderById struct{} func (h *profileLoaderById) Execute(testName string) error { - results, err := testutils.RunNucleiWithArgsAndGetResults(false, "-tl", "-tp", "kev") + results, err := testutils.RunNucleiWithArgsAndGetResults(false, "-tl", "-tp", "cloud") if err != nil { return errorutil.NewWithErr(err).Msgf("failed to load template with id") } - if len(results) < 267 { - return fmt.Errorf("incorrect result: expected more results than %d, got %v", 267, len(results)) + if len(results) < 100 { + return fmt.Errorf("incorrect result: expected more results than %d, got %v", 100, len(results)) } return nil } diff --git a/cmd/nuclei/main.go b/cmd/nuclei/main.go index 94ccbc3c21..13a7ec2c1a 100644 --- a/cmd/nuclei/main.go +++ b/cmd/nuclei/main.go @@ -200,7 +200,7 @@ on extensive configurability, massive extensibility and ease of use.`) */ flagSet.CreateGroup("input", "Target", - flagSet.StringSliceVarP(&options.Targets, "target", "u", nil, "target URLs/hosts to scan", goflags.StringSliceOptions), + flagSet.StringSliceVarP(&options.Targets, "target", "u", nil, "target URLs/hosts to scan", goflags.CommaSeparatedStringSliceOptions), flagSet.StringVarP(&options.TargetsFilePath, "list", "l", "", "path to file containing a list of target URLs/hosts to scan (one per line)"), flagSet.StringSliceVarP(&options.ExcludeTargets, "exclude-hosts", "eh", nil, "hosts to exclude to scan from the input list (ip, cidr, hostname)", goflags.FileCommaSeparatedStringSliceOptions), flagSet.StringVar(&options.Resume, "resume", "", "resume scan using resume.cfg (clustering will be disabled)"),