SearchForYaraFiles search *.yar file by walking recursively from specified input path
(path string, verbose bool)
| 74 | |
| 75 | // SearchForYaraFiles search *.yar file by walking recursively from specified input path |
| 76 | func 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 |
| 85 | func LoadYaraRules(path []string, rc4key string, verbose bool) (compiler *yara.Compiler, err error) { |
no test coverage detected