diff --git a/.gitignore b/.gitignore index 52afcbc..e93353b 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,6 @@ # Dependency directories (remove the comment below to include it) # vendor/ .idea/ -bin/ \ No newline at end of file +bin/ +*.stat +spray diff --git a/core/option.go b/core/option.go index 9c29576..abdcea7 100644 --- a/core/option.go +++ b/core/option.go @@ -697,7 +697,14 @@ func (opt *Option) BuildPlugin(r *Runner) error { } if opt.ReconPlugin { - pkg.Extractors["recon"] = pkg.ExtractRegexps["pentest"] + // Combine pentest and info extractors for recon + // Pre-allocate capacity for both pentest and info extractors to avoid reallocation + pentestExtractors := pkg.ExtractRegexps["pentest"] + infoExtractors := pkg.ExtractRegexps["info"] + reconExtractors := make([]*parsers.Extractor, 0, len(pentestExtractors)+len(infoExtractors)) + reconExtractors = append(reconExtractors, pentestExtractors...) + reconExtractors = append(reconExtractors, infoExtractors...) + pkg.Extractors["recon"] = reconExtractors } if opt.Finger {