MCPcopy Create free account
hub / github.com/Hackmanit/Web-Cache-Vulnerability-Scanner / checkRecInclude

Function checkRecInclude

pkg/recon.go:1320–1331  ·  view source on GitHub ↗
(x string, recInclude string)

Source from the content-addressed store, hash-verified

1318}
1319
1320func checkRecInclude(x string, recInclude string) bool {
1321 for _, inc := range strings.Split(recInclude, " ") {
1322 // remove spaces and skip if someone used multiple spaces instead of one
1323 if inc == "" {
1324 continue
1325 }
1326 if strings.Contains(x, inc) {
1327 return true
1328 }
1329 }
1330 return false
1331}
1332
1333func addUrl(urls []string, url string, added map[string]bool, excluded map[string]bool) []string {
1334 url = addDomain(url, Config.Website.Url.Hostname())

Callers 1

addUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected