MCPcopy
hub / github.com/OJ/gobuster / containsFuzzKeyword

Function containsFuzzKeyword

cli/fuzz/fuzz.go:84–108  ·  view source on GitHub ↗
(pluginopts gobusterfuzz.OptionsFuzz)

Source from the content-addressed store, hash-verified

82}
83
84func containsFuzzKeyword(pluginopts gobusterfuzz.OptionsFuzz) bool {
85 if strings.Contains(pluginopts.URL.String(), gobusterfuzz.FuzzKeyword) {
86 return true
87 }
88
89 if strings.Contains(pluginopts.RequestBody, gobusterfuzz.FuzzKeyword) {
90 return true
91 }
92
93 for _, h := range pluginopts.Headers {
94 if strings.Contains(h.Name, gobusterfuzz.FuzzKeyword) || strings.Contains(h.Value, gobusterfuzz.FuzzKeyword) {
95 return true
96 }
97 }
98
99 if strings.Contains(pluginopts.Username, gobusterfuzz.FuzzKeyword) {
100 return true
101 }
102
103 if strings.Contains(pluginopts.Password, gobusterfuzz.FuzzKeyword) {
104 return true
105 }
106
107 return false
108}

Callers 1

runFunction · 0.85

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected