mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 15:55:26 +00:00
chore: fix function names in comment (#5110)
This commit is contained in:
parent
7ce1b3e43d
commit
e96fdf2e40
@ -394,7 +394,7 @@ func EnablePassiveMode() NucleiSDKOptions {
|
||||
}
|
||||
}
|
||||
|
||||
// WithAuthOptions allows setting a custom authprovider implementation
|
||||
// WithAuthProvider allows setting a custom authprovider implementation
|
||||
func WithAuthProvider(provider authprovider.AuthProvider) NucleiSDKOptions {
|
||||
return func(e *NucleiEngine) error {
|
||||
e.authprovider = provider
|
||||
|
||||
@ -95,7 +95,7 @@ func (e *ThreadSafeNucleiEngine) GlobalResultCallback(callback func(event *outpu
|
||||
e.eng.resultCallbacks = []func(*output.ResultEvent){callback}
|
||||
}
|
||||
|
||||
// ExecuteWithCallback executes templates on targets and calls callback on each result(only if results are found)
|
||||
// ExecuteNucleiWithOpts executes templates on targets and calls callback on each result(only if results are found)
|
||||
// This method can be called concurrently and it will use some global resources but can be runned parallelly
|
||||
// by invoking this method with different options and targets
|
||||
// Note: Not all options are thread-safe. this method will throw error if you try to use non-thread-safe options
|
||||
|
||||
@ -219,7 +219,7 @@ func GetAuthDataFromFile(file string) (*Authx, error) {
|
||||
return GetAuthDataFromJSON(bin)
|
||||
}
|
||||
|
||||
// GetTemplateIDsFromSecretFile reads the template IDs from the secret file
|
||||
// GetTemplatePathsFromSecretFile reads the template IDs from the secret file
|
||||
func GetTemplatePathsFromSecretFile(file string) ([]string, error) {
|
||||
auth, err := GetAuthDataFromFile(file)
|
||||
if err != nil {
|
||||
|
||||
@ -166,12 +166,12 @@ func (c *Config) GetTemplateIndexFilePath() string {
|
||||
return filepath.Join(c.TemplatesDirectory, NucleiTemplatesIndexFileName)
|
||||
}
|
||||
|
||||
// GetTemplatesConfigFilePath returns checksum file path of nuclei templates
|
||||
// GetChecksumFilePath returns checksum file path of nuclei templates
|
||||
func (c *Config) GetChecksumFilePath() string {
|
||||
return filepath.Join(c.TemplatesDirectory, NucleiTemplatesCheckSumFileName)
|
||||
}
|
||||
|
||||
// GetCLIOptsConfigFilePath returns the nuclei cli config file path
|
||||
// GetFlagsConfigFilePath returns the nuclei cli config file path
|
||||
func (c *Config) GetFlagsConfigFilePath() string {
|
||||
return filepath.Join(c.configDir, CLIConfigFileName)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user