![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
The YaraScanner class that is used to scan a file using YARA rules. More...
#include <PanoptesYara.h>
Classes | |
| struct | ScanData |
| The data that is sent to the Panoptes Service. More... | |
Public Member Functions | |
| YaraScanner (const char *Rules) | |
| Intializes Yara memory and attempts to load supplied yara rules. | |
| ~YaraScanner () | |
| Destructor for the YaraScanner class that destroys the YARA rules. | |
| std::vector< std::string > | YaraScanFile (std::string PathToFile) |
| Scan a file using YARA rules. | |
The YaraScanner class that is used to scan a file using YARA rules.
Definition at line 20 of file PanoptesYara.h.
| YaraScanner::YaraScanner | ( | const char * | rulesPath | ) |
Intializes Yara memory and attempts to load supplied yara rules.
| rulesPath |
Definition at line 37 of file yara-scan.cpp.
References readFileToBuffer(), and result.
Referenced by PanoEntry().
| YaraScanner::~YaraScanner | ( | ) |
Destructor for the YaraScanner class that destroys the YARA rules.
Definition at line 53 of file yara-scan.cpp.
| std::vector< string > YaraScanner::YaraScanFile | ( | std::string | file_path | ) |
Scan a file using YARA rules.
| file_path | The path to the file to scan |
Definition at line 81 of file yara-scan.cpp.
References matchingRule(), readFileToBuffer(), and result.
Referenced by PanoEntry(), and Yara::TEST_F().