Skip to content

Commit

Permalink
Detector-Competition-Fix: Fix SalesBlink Detection & Verification (#1950
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lc authored Oct 30, 2023
1 parent 244ba3a commit de4a14b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/detectors/salesblink/salesblink.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (
client = common.SaneHttpClient()

// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"salesblink"}) + `\b([a-zA-Z]{16})\b`)
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"salesblink"}) + `\b(key-[a-zA-Z0-9]{64})\b`)
)

// Keywords are used for efficiently pre-filtering chunks.
Expand All @@ -47,7 +47,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
}

if verify {
req, err := http.NewRequestWithContext(ctx, "GET", "https://run.salesblink.io/api/campaigns", nil)
req, err := http.NewRequestWithContext(ctx, "GET", "https://run.salesblink.io/api/public/lists", nil)
if err != nil {
continue
}
Expand Down

0 comments on commit de4a14b

Please sign in to comment.