diff --git a/lib/sdk_test.go b/lib/sdk_test.go index 2d1669b24..710b2a6ed 100644 --- a/lib/sdk_test.go +++ b/lib/sdk_test.go @@ -24,7 +24,7 @@ func TestSimpleNucleiRemote(t *testing.T) { ne, err := nuclei.NewNucleiEngine( nuclei.WithTemplatesOrWorkflows( nuclei.TemplateSources{ - RemoteTemplates: []string{"https://templates.nuclei.sh/public/nameserver-fingerprint.yaml"}, + RemoteTemplates: []string{"https://cloud.projectdiscovery.io/public/nameserver-fingerprint.yaml"}, }, ), ) diff --git a/pkg/catalog/loader/loader.go b/pkg/catalog/loader/loader.go index 3f39b31f6..8b1b222ef 100644 --- a/pkg/catalog/loader/loader.go +++ b/pkg/catalog/loader/loader.go @@ -197,7 +197,7 @@ func handleTemplatesEditorURLs(input string) string { if err != nil { return input } - if !strings.HasSuffix(parsed.Hostname(), "templates.nuclei.sh") { + if !strings.HasSuffix(parsed.Hostname(), "cloud.projectdiscovery.io") { return input } if strings.HasSuffix(parsed.Path, ".yaml") { diff --git a/pkg/utils/template_path.go b/pkg/utils/template_path.go index 7bbbe14fd..f6ed8ae92 100644 --- a/pkg/utils/template_path.go +++ b/pkg/utils/template_path.go @@ -8,7 +8,7 @@ import ( const ( // 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