Skip to content

Commit

Permalink
Update worker.go
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidshaikh committed Jul 24, 2024
1 parent b4039e9 commit 95b4564
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ func (c *Config) checkSubdomain(subdomain string) Result {

func (c *Config) matchResponse(body string) Result {
for _, fingerprint := range c.fingerprints {

if fingerprint.Fingerprint == "" {
// Skip the check if Fingerprint is empty in json file and move to the next. this prevent a scanner to show wrong or false positive result.
continue
}

if strings.Contains(body, fingerprint.Fingerprint) {
for _, false_positive_string := range fingerprint.False_Positive {
if len(string(false_positive_string)) > 0 {
Expand Down

0 comments on commit 95b4564

Please sign in to comment.