Skip to content

Commit

Permalink
misc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsandeep committed Nov 30, 2024
1 parent 9072cd2 commit 8426923
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/engine/hybrid/crawl.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,13 @@ func (c *Crawler) navigateRequest(s *common.CrawlSession, request *navigation.Re
rawBytesResponse, _ = httputil.DumpResponse(httpresp, true)

bodyReader, _ := goquery.NewDocumentFromReader(bytes.NewReader(body))
var technologyKeys []string
var technologies map[string]interface{}
if c.Options.Wappalyzer != nil {
technologies := c.Options.Wappalyzer.Fingerprint(headers, body)
technologyKeys = mapsutil.GetKeys(technologies)
fingerprints := c.Options.Wappalyzer.Fingerprint(headers, body)
technologies = make(map[string]interface{}, len(fingerprints))
for k := range fingerprints {
technologies[k] = struct{}{}
}
}
resp := &navigation.Response{
Resp: httpresp,
Expand Down

0 comments on commit 8426923

Please sign in to comment.