Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ import (

// Runner is a client for running the enumeration process.
type Runner struct {
seenMux sync.Mutex
options *Options
hp *httpx.HTTPX
wappalyzer *wappalyzer.Wappalyze
Expand Down Expand Up @@ -675,6 +676,9 @@ func (r *Runner) classifyPage(headlessBody, body string, pHash uint64) map[strin
}

func (r *Runner) testAndSet(k string) bool {
r.seenMux.Lock()
defer r.seenMux.Unlock()

// skip empty lines
k = strings.TrimSpace(k)
if k == "" {
Expand Down
Loading