MCPcopy
hub / github.com/projectdiscovery/uncover / appendQuery

Function appendQuery

runner/options.go:299–311  ·  view source on GitHub ↗
(options *Options, name string, queries ...string)

Source from the content-addressed store, hash-verified

297}
298
299func appendQuery(options *Options, name string, queries ...string) {
300 if len(queries) > 0 {
301 if !slices.Contains(options.Engine, name) {
302 options.Engine = append(options.Engine, name)
303 }
304
305 for _, query := range queries {
306 if !slices.Contains(options.Query, query) {
307 options.Query = append(options.Query, query)
308 }
309 }
310 }
311}
312
313func appendAllQueries(options *Options) {
314 appendQuery(options, "shodan", options.Shodan...)

Callers 2

appendAllQueriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…