mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 21:55:26 +00:00
Guard cloud service (#6053)
* guard cloud services with credentials * update msg * minor
This commit is contained in:
parent
dabcce865e
commit
89c77d1e9e
@ -526,6 +526,15 @@ Additional documentation is available at: https://docs.nuclei.sh/getting-started
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// guard cloud services with credentials
|
||||||
|
if options.AITemplatePrompt != "" {
|
||||||
|
h := &pdcp.PDCPCredHandler{}
|
||||||
|
_, err := h.GetCreds()
|
||||||
|
if err != nil {
|
||||||
|
gologger.Fatal().Msg("To utilize the `-ai` flag, please configure your API key with the `-auth` flag or set the `PDCP_API_KEY` environment variable")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
gologger.DefaultLogger.SetTimestamp(options.Timestamp, levels.LevelDebug)
|
gologger.DefaultLogger.SetTimestamp(options.Timestamp, levels.LevelDebug)
|
||||||
|
|
||||||
if options.VerboseVerbose {
|
if options.VerboseVerbose {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user