diff --git a/DESIGN.md b/DESIGN.md index 4801415a2..969dc84ed 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -189,7 +189,7 @@ Polling for interactions and server registration only starts when a template use Next we arrive in the `RunEnumeration` function of the runner. -`HostErrorsCache` is initialised which is used throughout the run of Nuclei enumeration to keep track of errors per host and skip further requests if the errors are greater than the provided threshold. The functionality for the error tracking cache is defined in [hosterrorscache.go](https://github.com/projectdiscovery/nuclei/blob/master/v2/pkg/protocols/common/hosterrorscache/hosterrorscache.go) and is pretty simplistic in nature. +`HostErrorsCache` is initialised which is used throughout the run of Nuclei enumeration to keep track of errors per host and skip further requests if the errors are greater than the provided threshold. The functionality for the error tracking cache is defined in [hosterrorscache.go](https://github.com/projectdiscovery/nuclei/blob/main/v2/pkg/protocols/common/hosterrorscache/hosterrorscache.go) and is pretty simplistic in nature. Next the `WorkflowLoader` is initialised which used to load workflows. It exists in `v2/pkg/parsers/workflow_loader.go` diff --git a/README.md b/README.md index ddd4e0c73..ea870879c 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,10 @@
- English • - 中文 • - Korean • - Indonesia + English • + 中文 • + Korean • + Indonesia
--- @@ -429,7 +429,7 @@ Do also check out the below similar open-source projects that may fit in your wo ### License -Nuclei is distributed under [MIT License](https://github.com/projectdiscovery/nuclei/blob/master/LICENSE.md) +Nuclei is distributed under [MIT License](https://github.com/projectdiscovery/nuclei/blob/main/LICENSE.md)
diff --git a/README_CN.md b/README_CN.md
index 77d5f0424..bcc0ea55f 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -29,9 +29,9 @@
- English • - 中文 • - Korean + English • + 中文 • + Korean
--- @@ -349,7 +349,7 @@ Nuclei构建很简单,通过数百名安全研究员的社区模板,Nuclei ### 许可证 -Nuclei使用[MIT许可证](https://github.com/projectdiscovery/nuclei/blob/master/LICENSE.md) +Nuclei使用[MIT许可证](https://github.com/projectdiscovery/nuclei/blob/main/LICENSE.md)
diff --git a/README_ID.md b/README_ID.md
index 941da5556..4d044041d 100644
--- a/README_ID.md
+++ b/README_ID.md
@@ -29,10 +29,10 @@
- English • - 中文 • - Korean • - Indonesia + English • + 中文 • + Korean • + Indonesia
--- @@ -350,7 +350,7 @@ Terima kasih kepada semua komunitas yang luar biasa yang [berkontribusi untuk me ### Lisensi -Nuclei didistribusikan di bawah [Lisensi MIT](https://github.com/projectdiscovery/nuclei/blob/master/LICENSE.md) +Nuclei didistribusikan di bawah [Lisensi MIT](https://github.com/projectdiscovery/nuclei/blob/main/LICENSE.md)
diff --git a/README_KR.md b/README_KR.md
index 48e6d4e1a..9b4db7317 100644
--- a/README_KR.md
+++ b/README_KR.md
@@ -28,9 +28,9 @@
- English • - 中文 • - 한국어 + English • + 中文 • + 한국어
--- @@ -340,7 +340,7 @@ Thanks to all the amazing community [contributors for sending PRs](https://githu ### License -Nuclei is distributed under [MIT License](https://github.com/projectdiscovery/nuclei/blob/master/LICENSE.md) +Nuclei is distributed under [MIT License](https://github.com/projectdiscovery/nuclei/blob/main/LICENSE.md)
diff --git a/SYNTAX-REFERENCE.md b/SYNTAX-REFERENCE.md
index 79d3cf699..b6295896d 100755
--- a/SYNTAX-REFERENCE.md
+++ b/SYNTAX-REFERENCE.md
@@ -2647,7 +2647,7 @@ Name is the name assigned to the headless action.
This can be used to execute code, for instance in browser
DOM using script action, and get the result in a variable
-which can be matched upon by nuclei. An Example template [here](https://github.com/projectdiscovery/nuclei-templates/blob/master/headless/prototype-pollution-check.yaml).
+which can be matched upon by nuclei. An Example template [here](https://github.com/projectdiscovery/nuclei-templates/blob/main/headless/prototype-pollution-check.yaml).
diff --git a/v2/pkg/catalog/loader/loader_test.go b/v2/pkg/catalog/loader/loader_test.go
index 6f624e729..69d1f7d64 100644
--- a/v2/pkg/catalog/loader/loader_test.go
+++ b/v2/pkg/catalog/loader/loader_test.go
@@ -64,13 +64,13 @@ func TestRemoteTemplates(t *testing.T) {
name: "remote-templates-positive",
args: args{
config: &Config{
- TemplateURLs: []string{"https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/technologies/tech-detect.yaml"},
+ TemplateURLs: []string{"https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/technologies/tech-detect.yaml"},
RemoteTemplateDomainList: []string{"localhost", "raw.githubusercontent.com"},
Catalog: catalog,
},
},
want: &Store{
- finalTemplates: []string{"https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/technologies/tech-detect.yaml"},
+ finalTemplates: []string{"https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/technologies/tech-detect.yaml"},
},
wantErr: false,
},
@@ -78,7 +78,7 @@ func TestRemoteTemplates(t *testing.T) {
name: "remote-templates-negative",
args: args{
config: &Config{
- TemplateURLs: []string{"https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/technologies/tech-detect.yaml"},
+ TemplateURLs: []string{"https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/technologies/tech-detect.yaml"},
RemoteTemplateDomainList: []string{"localhost"},
Catalog: catalog,
},
diff --git a/v2/pkg/protocols/headless/engine/action.go b/v2/pkg/protocols/headless/engine/action.go
index 8e3f7b327..905652812 100644
--- a/v2/pkg/protocols/headless/engine/action.go
+++ b/v2/pkg/protocols/headless/engine/action.go
@@ -19,7 +19,7 @@ type Action struct {
//
// This can be used to execute code, for instance in browser
// DOM using script action, and get the result in a variable
- // which can be matched upon by nuclei. An Example template [here](https://github.com/projectdiscovery/nuclei-templates/blob/master/headless/prototype-pollution-check.yaml).
+ // which can be matched upon by nuclei. An Example template [here](https://github.com/projectdiscovery/nuclei-templates/blob/main/headless/prototype-pollution-check.yaml).
Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"title=name for headless action,description=Name is the name assigned to the headless action"`
// description: |
// Description is the optional description of the headless action
diff --git a/v2/pkg/templates/templates_doc.go b/v2/pkg/templates/templates_doc.go
index f73bb0d87..3e3b005a2 100644
--- a/v2/pkg/templates/templates_doc.go
+++ b/v2/pkg/templates/templates_doc.go
@@ -1214,7 +1214,7 @@ func init() {
ENGINEActionDoc.Fields[1].Name = "name"
ENGINEActionDoc.Fields[1].Type = "string"
ENGINEActionDoc.Fields[1].Note = ""
- ENGINEActionDoc.Fields[1].Description = "Name is the name assigned to the headless action.\n\nThis can be used to execute code, for instance in browser\nDOM using script action, and get the result in a variable\nwhich can be matched upon by nuclei. An Example template [here](https://github.com/projectdiscovery/nuclei-templates/blob/master/headless/prototype-pollution-check.yaml)."
+ ENGINEActionDoc.Fields[1].Description = "Name is the name assigned to the headless action.\n\nThis can be used to execute code, for instance in browser\nDOM using script action, and get the result in a variable\nwhich can be matched upon by nuclei. An Example template [here](https://github.com/projectdiscovery/nuclei-templates/blob/main/headless/prototype-pollution-check.yaml)."
ENGINEActionDoc.Fields[1].Comments[encoder.LineComment] = "Name is the name assigned to the headless action."
ENGINEActionDoc.Fields[2].Name = "description"
ENGINEActionDoc.Fields[2].Type = "string"
diff --git a/v2/pkg/utils/template_path.go b/v2/pkg/utils/template_path.go
index dd68555ff..7fac7e4a4 100644
--- a/v2/pkg/utils/template_path.go
+++ b/v2/pkg/utils/template_path.go
@@ -10,7 +10,7 @@ import (
const (
// TemplatesRepoURL is the URL for files in nuclei-templates repository
- TemplatesRepoURL = "https://github.com/projectdiscovery/nuclei-templates/blob/master/"
+ TemplatesRepoURL = "https://github.com/projectdiscovery/nuclei-templates/blob/main/"
)
var configData *config.Config