Skip to content

Commit

Permalink
fix nuclei模版参数目录定位bug 2022-07-08 13:38:1657258724
Browse files Browse the repository at this point in the history
  • Loading branch information
x51pwn committed Jul 8, 2022
1 parent ac82b92 commit f360bbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nuclei_Yaml/nuclei_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,14 @@ func readConfig() {

options.UpdateNuclei = false
options.UpdateTemplates = false
options.TemplatesDirectory = ""
// 嵌入式集成私人版本nuclei-templates 共3744个YAML POC
if "true" == pkg.GetVal("enablEmbedYaml") {
options.TemplatesDirectory = "./config/nuclei-templates"
options.Templates = []string{"./config/nuclei-templates"}
options.NoUpdateTemplates = true

} else {
options.TemplatesDirectory = ""

options.NoUpdateTemplates = false
}
options.EnableProgressBar = false
Expand Down

0 comments on commit f360bbd

Please sign in to comment.