diff --git a/config/config.json b/config/config.json index a0690b7fa..fc44d290d 100644 --- a/config/config.json +++ b/config/config.json @@ -56,6 +56,7 @@ "naabu_dns": {}, "naabu": {"TopPorts": "1000","ScanAllIPS": true,"Threads": 25}, "priorityNmap": true, + "enableNuclei": false, "nuclei": { "RateLimit": 150, "BulkSize":64, diff --git a/config/config_me.json b/config/config_me.json index 8d7ae4722..9d22394c2 100644 --- a/config/config_me.json +++ b/config/config_me.json @@ -55,6 +55,7 @@ "KsubdomainRegxp": "([0-9a-zA-Z\\-]+\\.[0-9a-zA-Z\\-]+)$", "naabu_dns": {}, "naabu": {"TopPorts": "1000","ScanAllIPS": true,"Threads": 64}, + "enableNuclei": false, "nuclei": { "RateLimit": 150, "BulkSize":64, diff --git a/nuclei_Yaml/nuclei_yaml.go b/nuclei_Yaml/nuclei_yaml.go index 0b8c34868..e60443f51 100644 --- a/nuclei_Yaml/nuclei_yaml.go +++ b/nuclei_Yaml/nuclei_yaml.go @@ -27,6 +27,9 @@ func RunNuclei(buf *bytes.Buffer, xx chan bool) { xx <- true close(xx) }() + if "true" != pkg.GetValByDefault("enableNuclei", "false") { + return + } // json 控制参数 options = pkg.ParseOption[types.Options]("nuclei", options) if err := runner.ConfigureOptions(); err != nil {