Versions in this module Expand all Collapse all v3 v3.3.0 Jul 18, 2024 Changes in this version + const BinaryName + const CLIConfigFileName + const CustomAzureTemplatesDirName + const CustomGitHubTemplatesDirName + const CustomGitLabTemplatesDirName + const CustomS3TemplatesDirName + const DebugArgHostErrorStats + const DebugExportURLPattern + const FallbackConfigFolderName + const NewTemplateAdditionsFileName + const NucleiConfigDirEnv + const NucleiIgnoreFileName + const NucleiTemplatesCheckSumFileName + const NucleiTemplatesDirName + const NucleiTemplatesIndexFileName + const OfficialNucleiTemplatesRepoName + const ReportingConfigFilename + const TemplateConfigFileName + const Version + var CurrentAppMode = AppModeLibrary + func GetNucleiTemplatesIndex() (map[string]string, error) + func GetSupportTemplateFileExtensions() []string + func GetTemplateIDFromReader(data io.Reader, filename string) (string, error) + func IsOutdatedVersion(current, latest string) bool + func IsTemplate(filename string) bool + type AppMode string + const AppModeCLI + const AppModeLibrary + type Config struct + CustomAzureTemplatesDirectory string + CustomGitHubTemplatesDirectory string + CustomGitLabTemplatesDirectory string + CustomS3TemplatesDirectory string + HideTemplateSigWarning bool + LatestNucleiIgnoreHash string + LatestNucleiTemplatesVersion string + LatestNucleiVersion string + LogAllEvents bool + NucleiIgnoreHash string + TemplateVersion string + TemplatesDirectory string + var DefaultConfig *Config + func (c *Config) CanCheckForUpdates() bool + func (c *Config) DisableUpdateCheck() + func (c *Config) GetAllCustomTemplateDirs() []string + func (c *Config) GetCacheDir() string + func (c *Config) GetChecksumFilePath() string + func (c *Config) GetConfigDir() string + func (c *Config) GetFlagsConfigFilePath() string + func (c *Config) GetIgnoreFilePath() string + func (c *Config) GetKeysDir() string + func (c *Config) GetNewAdditions() []string + func (c *Config) GetReportingConfigFilePath() string + func (c *Config) GetTemplateDir() string + func (c *Config) GetTemplateIndexFilePath() string + func (c *Config) IsCustomTemplate(templatePath string) bool + func (c *Config) IsDebugArgEnabled(arg string) bool + func (c *Config) NeedsIgnoreFileUpdate() bool + func (c *Config) NeedsTemplateUpdate() bool + func (c *Config) ReadTemplatesConfig() error + func (c *Config) SetConfigDir(dir string) + func (c *Config) SetTemplatesDir(dirPath string) + func (c *Config) SetTemplatesVersion(version string) error + func (c *Config) UpdateNucleiIgnoreHash() error + func (c *Config) WriteTemplatesConfig() error + func (c *Config) WriteTemplatesIndex(index map[string]string) error + func (c *Config) WriteVersionCheckData(ignorehash, nucleiVersion, templatesVersion string) error + type IgnoreFile struct + Files []string + Tags []string + func ReadIgnoreFile() IgnoreFile + type TemplateFormat uint8 + const JSON + const Unknown + const YAML + func GetTemplateFormatFromExt(filePath string) TemplateFormat