From c9cb7ca6ac7ebc20043fc40e8062642695a19d18 Mon Sep 17 00:00:00 2001 From: meme-lord Date: Thu, 1 Aug 2024 21:09:32 +0100 Subject: [PATCH] allow words to be in the template --- mutator.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/mutator.go b/mutator.go index 6da82c39..2beaeb45 100644 --- a/mutator.go +++ b/mutator.go @@ -236,14 +236,7 @@ func (m *Mutator) clusterBomb(template string, results chan string) { // instead of sending all payloads only send payloads that are used // in template/statement for _, v := range varsUsed { - payloadSet[v] = []string{} - for _, word := range m.Options.Payloads[v] { - if !strings.Contains(template, word) { - // skip all words that are already present in template/sub , it is highly unlikely - // we will ever find api-api.example.com - payloadSet[v] = append(payloadSet[v], word) - } - } + payloadSet[v] = append([]string{}, m.Options.Payloads[v]...) } payloads := NewIndexMap(payloadSet) // in clusterBomb attack no of payloads generated are