MCPcopy Create free account
hub / github.com/chainreactors/spray / loadDictionaries

Function loadDictionaries

pkg/utils.go:598–608  ·  view source on GitHub ↗
(filenames []string)

Source from the content-addressed store, hash-verified

596}
597
598func loadDictionaries(filenames []string) ([][]string, error) {
599 dicts := make([][]string, len(filenames))
600 for i, name := range filenames {
601 dict, err := loadFileWithCache(name)
602 if err != nil {
603 return nil, err
604 }
605 dicts[i] = dict
606 }
607 return dicts, nil
608}
609
610func LoadWordlist(word string, dictNames []string) ([]string, error) {
611 if wl, ok := wordlistCache[word+strings.Join(dictNames, ",")]; ok {

Callers 1

LoadWordlistFunction · 0.85

Calls 1

loadFileWithCacheFunction · 0.85

Tested by

no test coverage detected