MCPcopy Create free account
hub / github.com/codeyourweb/irma / SearchForYaraFiles

Function SearchForYaraFiles

yaraProcessing.go:76–82  ·  view source on GitHub ↗

SearchForYaraFiles search *.yar file by walking recursively from specified input path

(path string, verbose bool)

Source from the content-addressed store, hash-verified

74
75// SearchForYaraFiles search *.yar file by walking recursively from specified input path
76func SearchForYaraFiles(path string, verbose bool) (rules []string) {
77 rules, err := RetrivesFilesFromUserPath(path, true, []string{".yar"}, true, verbose)
78 if err != nil && verbose {
79 logMessage(LOG_INFO, err)
80 }
81 return rules
82}
83
84// LoadYaraRules compile yara rules from specified paths and return a pointer to the yara compiler
85func LoadYaraRules(path []string, rc4key string, verbose bool) (compiler *yara.Compiler, err error) {

Callers 2

recursiveCompressFolderFunction · 0.85
mainFunction · 0.85

Calls 2

logMessageFunction · 0.85

Tested by

no test coverage detected