installer

package
v3.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 27 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HideProgressBar        = true
	HideUpdateChangesTable = false
	HideReleaseNotes       = true
)

Functions

func GetNewTemplatesInVersions

func GetNewTemplatesInVersions(versions ...string) []string

GetNewTemplatesInVersions returns templates path of all newly added templates in these versions

func NucleiSDKVersionCheck

func NucleiSDKVersionCheck()

NucleiSDKVersionCheck checks for latest version of nuclei which running in sdk mode this only happens once per process regardless of how many times this function is called

func NucleiVersionCheck

func NucleiVersionCheck() error

NucleiVersionCheck checks for the latest version of nuclei and nuclei templates and returns an error if it fails to check on success it returns nil and changes are made to the default config in config.DefaultConfig

func PurgeEmptyDirectories

func PurgeEmptyDirectories(dir string)

func UpdateIgnoreFile

func UpdateIgnoreFile() error

UpdateIgnoreFile updates default ignore file by downloading latest ignore file

Types

type PdtmAPIResponse

type PdtmAPIResponse struct {
	IgnoreHash string `json:"ignore-hash"`
	Tools      []struct {
		Name    string `json:"name"`
		Version string `json:"version"`
	} `json:"tools"`
}

PdtmAPIResponse is the response from pdtm API for nuclei endpoint

type TemplateManager

type TemplateManager struct {
	CustomTemplates        *customtemplates.CustomTemplatesManager // optional if given tries to download custom templates
	DisablePublicTemplates bool                                    // if true,

}

TemplateManager is a manager for templates. It downloads / updates / installs templates.

func (*TemplateManager) FreshInstallIfNotExists

func (t *TemplateManager) FreshInstallIfNotExists() error

FreshInstallIfNotExists installs templates if they are not already installed if templates directory already exists, it does nothing

func (*TemplateManager) UpdateIfOutdated

func (t *TemplateManager) UpdateIfOutdated() error

UpdateIfOutdated updates templates if they are outdated

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL