From 5f9d77808f18fd6af9190742454e0beae0a715f6 Mon Sep 17 00:00:00 2001 From: hktalent <18223385+hktalent@users.noreply.github.com> Date: Thu, 21 Dec 2023 22:03:12 +0800 Subject: [PATCH] fixed can not run nuclei 2023-12-21 --- config/config.json | 2 +- main.go | 2 +- projectdiscovery/nuclei_Yaml/nuclei_yaml.go | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config/config.json b/config/config.json index b638b0fe0..804d04eec 100644 --- a/config/config.json +++ b/config/config.json @@ -79,7 +79,7 @@ "enableMultNuclei": false, "enableNuclei": true, "enableByWaf": true, - "enableDevDebug": true, + "enableDevDebug": false, "enableEmbedYaml": true, "enableFileFuzz": true, "httpx": { diff --git a/main.go b/main.go index ee5a975cb..6f1a29693 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ var Version string /* go tool pprof -seconds=180 -http=:9999 http://127.0.0.1:6060/debug/pprof/heap no leak -go tool pprof http://192.168.7.11:6060/debug/pprof/profile +go tool pprof http://127.0.0.1:6060/debug/pprof/profile http://localhost:9999/ui/ */ diff --git a/projectdiscovery/nuclei_Yaml/nuclei_yaml.go b/projectdiscovery/nuclei_Yaml/nuclei_yaml.go index 60f68091e..01a9257b5 100644 --- a/projectdiscovery/nuclei_Yaml/nuclei_yaml.go +++ b/projectdiscovery/nuclei_Yaml/nuclei_yaml.go @@ -31,8 +31,9 @@ func RunNuclei(buf *bytes.Buffer) { szP := util.SzPwd + "/config/" os.MkdirAll(szP+"tools/"+runtime.GOOS, os.ModePerm) a := []string{ - szP + "tools/" + runtime.GOOS + "/" + szCmd, - "-t", szP + "nuclei-templates", + //szP + "tools/" + runtime.GOOS + "/" + + szCmd, + //"-t", szP + "nuclei-templates", "-sa", "-duc", "-silent", "-nc", }