Skip to content

Commit abf7e4e

Browse files
committed
1、close nuclei fuzz PoCs
2、add enableMultNuclei controls new features 2022-08-04
1 parent b540316 commit abf7e4e

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

config/config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@
6868
"naabu": {"TopPorts": "1000","ScanAllIPS": true,"Threads": 50,"EnableProgressBar": false},
6969
"priorityNmap": true,
7070
"noScan": false,
71+
"enableMultNuclei": false,
7172
"enableNuclei": true,
7273
"nuclei": {
7374
"Severities": [5,4,3],
7475
"RateLimit": 150,
76+
"ExcludeTags": ["fuzz"],
7577
"BulkSize":64,
7678
"TemplateThreads": 64,
7779
"HeadlessBulkSize": 10,

config/scan4all_db.db

0 Bytes
Binary file not shown.

pkg/naabu/v2/pkg/runner/runner.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ func (r *Runner) Httpxrun() error {
8383
//var axx1 []*runner2.Runner
8484
defer func() { <-nucleiDone }()
8585
util.DoSyncFunc(func() {
86-
go nuclei_Yaml.RunNuclei(&httpxrunner.Naabubuffer, nucleiDone, &opts, xx1)
86+
if util.GetValAsBool("enableMultNuclei") {
87+
go nuclei_Yaml.RunNucleiP(&httpxrunner.Naabubuffer, nucleiDone, &opts, xx1)
88+
} else {
89+
go nuclei_Yaml.RunNuclei(&httpxrunner.Naabubuffer, nucleiDone, &opts, xx1)
90+
}
8791
})
8892
// 指纹去重复 请求路径
8993
if "" != fingerprint.FgDictFile {

projectdiscovery/nuclei_Yaml/nuclei_yaml.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func RunNucleiP(buf *bytes.Buffer, xx chan bool, oOpts *map[string]interface{},
8484
}
8585
}
8686
}
87-
go RunNucleiP(&buf1, nucleiDone1, &m1, outNuclei)
87+
go RunNuclei(&buf1, nucleiDone1, &m1, outNuclei)
8888
} else {
8989
nucleiDone1 <- true
9090
close(nucleiDone1)
@@ -107,7 +107,7 @@ func RunNucleiP(buf *bytes.Buffer, xx chan bool, oOpts *map[string]interface{},
107107
}
108108
}
109109
}
110-
go RunNucleiP(&buf1, nucleiDone2, &m1, outNuclei)
110+
go RunNuclei(&buf1, nucleiDone2, &m1, outNuclei)
111111
} else {
112112
nucleiDone2 <- true
113113
close(nucleiDone2)
@@ -199,7 +199,7 @@ func readConfig(options *types.Options) {
199199

200200
options.Authors = []string{}
201201
options.Tags = []string{}
202-
options.ExcludeTags = []string{}
202+
options.ExcludeTags = []string{"fuzz"}
203203
options.IncludeTags = []string{}
204204
options.IncludeIds = []string{}
205205
options.ExcludeIds = []string{}
@@ -267,7 +267,6 @@ func readConfig(options *types.Options) {
267267
// flagSet.BoolVar(&options.TemplateList, "tl", false, "list all available templates"),
268268
// flagSet.StringSliceVarConfigOnly(&options.RemoteTemplateDomainList, "remote-template-domain", []string{"api.nuclei.sh"}, "allowed domain list to load remote templates from"),
269269
//)
270-
271270
//createGroup(flagSet, "filters", "Filtering",
272271
//flagSet.FileNormalizedStringSliceVarP(&options.Authors, "author", "a", []string{}, "templates to run based on authors (comma-separated, file)"),
273272
//flagSet.FileNormalizedStringSliceVar(&options.Tags, "tags", []string{}, "templates to run based on tags (comma-separated, file)"),

0 commit comments

Comments
 (0)