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

Function LoadWordlist

pkg/utils.go:610–624  ·  view source on GitHub ↗
(word string, dictNames []string)

Source from the content-addressed store, hash-verified

608}
609
610func LoadWordlist(word string, dictNames []string) ([]string, error) {
611 if wl, ok := wordlistCache[word+strings.Join(dictNames, ",")]; ok {
612 return wl, nil
613 }
614 dicts, err := loadDictionaries(dictNames)
615 if err != nil {
616 return nil, err
617 }
618 wl, err := mask.Run(word, dicts, nil)
619 if err != nil {
620 return nil, err
621 }
622 wordlistCache[word] = wl
623 return wl, nil
624}
625
626func LoadRuleWithFiles(ruleFiles []string, filter string) ([]rule.Expression, error) {
627 if rules, ok := ruleCache[strings.Join(ruleFiles, ",")]; ok {

Callers 1

InitWorderMethod · 0.92

Calls 2

loadDictionariesFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected