Skip to content

Commit

Permalink
allow words to be in the template
Browse files Browse the repository at this point in the history
  • Loading branch information
meme-lord committed Aug 1, 2024
1 parent 74b85bb commit c9cb7ca
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions mutator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9cb7ca

Please sign in to comment.