Skip to content

Commit

Permalink
fix nil deref
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed May 23, 2024
1 parent b724e39 commit 306fb0d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -2004,12 +2004,14 @@ 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.
moreMatches := r.wappalyzer.FingerprintWithInfo(resp.Headers, []byte(headlessBody))
for match, data := range moreMatches {
technologies = append(technologies, match)
technologyDetails[match] = data
if r.options.TechDetect {
moreMatches := r.wappalyzer.FingerprintWithInfo(resp.Headers, []byte(headlessBody))
for match, data := range moreMatches {
technologies = append(technologies, match)
technologyDetails[match] = data
}
technologies = sliceutil.Dedupe(technologies)
}
technologies = sliceutil.Dedupe(technologies)
}
if scanopts.NoScreenshotBytes {
screenshotBytes = []byte{}
Expand Down

0 comments on commit 306fb0d

Please sign in to comment.