From 4167e4529e301de689f46aaf9260432e7ba97590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fan=20Can=20Bak=C4=B1r?= Date: Wed, 29 May 2024 10:38:08 +0300 Subject: [PATCH] minor --- runner/runner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runner/runner.go b/runner/runner.go index 1191a85c..9423652b 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -106,7 +106,7 @@ func New(options *Options) (*Runner, error) { options: options, } var err error - if options.TechDetect || options.JSONOutput { + if options.TechDetect || options.JSONOutput || options.CSVOutput { runner.wappalyzer, err = wappalyzer.New() } if err != nil { @@ -276,7 +276,7 @@ func New(options *Options) (*Runner, error) { scanopts.OutputResponseTime = options.OutputResponseTime scanopts.NoFallback = options.NoFallback scanopts.NoFallbackScheme = options.NoFallbackScheme - scanopts.TechDetect = options.TechDetect || options.JSONOutput + scanopts.TechDetect = options.TechDetect || options.JSONOutput || options.CSVOutput scanopts.StoreChain = options.StoreChain scanopts.StoreVisionReconClusters = options.StoreVisionReconClusters scanopts.MaxResponseBodySizeToSave = options.MaxResponseBodySizeToSave @@ -2004,7 +2004,7 @@ retry: // As we now have headless body, we can also use it for detecting // more technologies in the response. This is a quick trick to get // more detected technologies. - if r.options.TechDetect || r.options.JSONOutput { + if r.options.TechDetect || r.options.JSONOutput || r.options.CSVOutput { moreMatches := r.wappalyzer.FingerprintWithInfo(resp.Headers, []byte(headlessBody)) for match, data := range moreMatches { technologies = append(technologies, match)