Skip to content

Commit

Permalink
1、close nuclei fuzz PoCs
Browse files Browse the repository at this point in the history
2、add enableMultNuclei controls new features 2022-08-04
  • Loading branch information
hktalent committed Aug 4, 2022
1 parent 011b0b4 commit c4937f9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@
"naabu": {"TopPorts": "1000","ScanAllIPS": true,"Threads": 50,"EnableProgressBar": false},
"priorityNmap": true,
"noScan": false,
"enableMultNuclei": false,
"enableNuclei": true,
"nuclei": {
"Severities": [5,4,3],
"RateLimit": 150,
"ExcludeTags": ["fuzz"],
"BulkSize":64,
"TemplateThreads": 64,
"HeadlessBulkSize": 10,
Expand Down
Binary file modified config/scan4all_db.db
Binary file not shown.
6 changes: 5 additions & 1 deletion pkg/naabu/v2/pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ func (r *Runner) Httpxrun() error {
//var axx1 []*runner2.Runner
defer func() { <-nucleiDone }()
util.DoSyncFunc(func() {
go nuclei_Yaml.RunNuclei(&httpxrunner.Naabubuffer, nucleiDone, &opts, xx1)
if util.GetValAsBool("enableMultNuclei") {
go nuclei_Yaml.RunNucleiP(&httpxrunner.Naabubuffer, nucleiDone, &opts, xx1)
} else {
go nuclei_Yaml.RunNuclei(&httpxrunner.Naabubuffer, nucleiDone, &opts, xx1)
}
})
// 指纹去重复 请求路径
if "" != fingerprint.FgDictFile {
Expand Down
7 changes: 3 additions & 4 deletions projectdiscovery/nuclei_Yaml/nuclei_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func RunNucleiP(buf *bytes.Buffer, xx chan bool, oOpts *map[string]interface{},
}
}
}
go RunNucleiP(&buf1, nucleiDone1, &m1, outNuclei)
go RunNuclei(&buf1, nucleiDone1, &m1, outNuclei)
} else {
nucleiDone1 <- true
close(nucleiDone1)
Expand All @@ -107,7 +107,7 @@ func RunNucleiP(buf *bytes.Buffer, xx chan bool, oOpts *map[string]interface{},
}
}
}
go RunNucleiP(&buf1, nucleiDone2, &m1, outNuclei)
go RunNuclei(&buf1, nucleiDone2, &m1, outNuclei)
} else {
nucleiDone2 <- true
close(nucleiDone2)
Expand Down Expand Up @@ -199,7 +199,7 @@ func readConfig(options *types.Options) {

options.Authors = []string{}
options.Tags = []string{}
options.ExcludeTags = []string{}
options.ExcludeTags = []string{"fuzz"}
options.IncludeTags = []string{}
options.IncludeIds = []string{}
options.ExcludeIds = []string{}
Expand Down Expand Up @@ -267,7 +267,6 @@ func readConfig(options *types.Options) {
// flagSet.BoolVar(&options.TemplateList, "tl", false, "list all available templates"),
// flagSet.StringSliceVarConfigOnly(&options.RemoteTemplateDomainList, "remote-template-domain", []string{"api.nuclei.sh"}, "allowed domain list to load remote templates from"),
//)

//createGroup(flagSet, "filters", "Filtering",
//flagSet.FileNormalizedStringSliceVarP(&options.Authors, "author", "a", []string{}, "templates to run based on authors (comma-separated, file)"),
//flagSet.FileNormalizedStringSliceVar(&options.Tags, "tags", []string{}, "templates to run based on tags (comma-separated, file)"),
Expand Down

0 comments on commit c4937f9

Please sign in to comment.