| 106 | static const char *meta_delim = ",#+,"; |
| 107 | |
| 108 | void usage() { |
| 109 | |
| 110 | std::cout << std::endl << std::endl << "usage: ./yextend -r RULES_FILE -t TARGET_ENTITY [-j]" << std::endl; |
| 111 | std::cout << std::endl; |
| 112 | std::cout << " -r RULES_FILE = Yara ruleset file [*required]" << std::endl; |
| 113 | std::cout << " -t TARGET_ENTITY = file or directory [*required]" << std::endl; |
| 114 | std::cout << " -j output in JSON format and nothing more [optional]" << std::endl; |
| 115 | |
| 116 | std::cout << std::endl << std::endl; |
| 117 | |
| 118 | } |
| 119 | /////////////////////////////////////////////////////////////// |
| 120 | |
| 121 | bool is_file(const std::string &fpath) { |