diff --git a/v2/cmd/nuclei/main.go b/v2/cmd/nuclei/main.go index 91352b5ddc..8f6ab1a84a 100644 --- a/v2/cmd/nuclei/main.go +++ b/v2/cmd/nuclei/main.go @@ -337,6 +337,25 @@ on extensive configurability, massive extensibility and ease of use.`) flagSet.IntVar(&options.OutputLimit, "limit", 100, "limit the number of output to display"), ) + flagSet.SetCustomHelpText(`EXAMPLES: +Run nuclei on single host: + $ nuclei -target example.com + +Run nuclei with specific template directories: + $ nuclei -target example.com -t http/cves/ -t ssl + +Run nuclei against a list of hosts: + $ nuclei -list hosts.txt + +Run nuclei with a JSON output: + $ nuclei -target example.com -json-export output.json + +Run nuclei with sorted Markdown outputs (with environment variables): + $ MARKDOWN_EXPORT_SORT_MODE=template nuclei -target example.com -markdown-export nuclei_report/ + +Additional documentation is available at: https://docs.nuclei.sh/getting-started/running + `) + _ = flagSet.Parse() gologger.DefaultLogger.SetTimestamp(options.Timestamp, levels.LevelDebug)