mirror of https://github.com/daffainfo/nuclei.git
cloud template url update (#4439)
parent
b633ef63dc
commit
1d6890ca2f
|
@ -24,7 +24,7 @@ func TestSimpleNucleiRemote(t *testing.T) {
|
||||||
ne, err := nuclei.NewNucleiEngine(
|
ne, err := nuclei.NewNucleiEngine(
|
||||||
nuclei.WithTemplatesOrWorkflows(
|
nuclei.WithTemplatesOrWorkflows(
|
||||||
nuclei.TemplateSources{
|
nuclei.TemplateSources{
|
||||||
RemoteTemplates: []string{"https://templates.nuclei.sh/public/nameserver-fingerprint.yaml"},
|
RemoteTemplates: []string{"https://cloud.projectdiscovery.io/public/nameserver-fingerprint.yaml"},
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -197,7 +197,7 @@ func handleTemplatesEditorURLs(input string) string {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return input
|
return input
|
||||||
}
|
}
|
||||||
if !strings.HasSuffix(parsed.Hostname(), "templates.nuclei.sh") {
|
if !strings.HasSuffix(parsed.Hostname(), "cloud.projectdiscovery.io") {
|
||||||
return input
|
return input
|
||||||
}
|
}
|
||||||
if strings.HasSuffix(parsed.Path, ".yaml") {
|
if strings.HasSuffix(parsed.Path, ".yaml") {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// TemplatesRepoURL is the URL for files in nuclei-templates repository
|
// TemplatesRepoURL is the URL for files in nuclei-templates repository
|
||||||
TemplatesRepoURL = "https://templates.nuclei.sh/public/"
|
TemplatesRepoURL = "https://cloud.projectdiscovery.io/public/"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TemplatePathURL returns the Path and URL for the provided template
|
// TemplatePathURL returns the Path and URL for the provided template
|
||||||
|
|
Loading…
Reference in New Issue