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

Method useAwesomeSearchQueries

runner/options.go:335–357  ·  view source on GitHub ↗
(awesomeSearchQueries []string)

Source from the content-addressed store, hash-verified

333}
334
335func (options *Options) useAwesomeSearchQueries(awesomeSearchQueries []string) error {
336 data, err := awesomesearchqueries.GetQueries()
337 if err != nil {
338 return err
339 }
340
341 var queries []awesomesearchqueries.Query
342 if err := json.Unmarshal(data, &queries); err != nil {
343 return err
344 }
345
346 // TODO: This is ugly. Improve this by adding direct query support in awesome-search-queries.
347 for _, query := range awesomeSearchQueries {
348 for _, engine := range queries {
349 if engine.Name == query {
350 for _, engine := range engine.Engines {
351 appendQuery(options, engine.Platform, engine.Queries...)
352 }
353 }
354 }
355 }
356 return nil
357}

Callers 1

ParseOptionsFunction · 0.95

Calls 1

appendQueryFunction · 0.85

Tested by

no test coverage detected