![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
#include <Windows.h>#include <string>#include <vector>#include <panoptes.pb.h>#include "service_constants.h"#include "Configuration.hpp"Go to the source code of this file.
Functions | |
| ERRORCODE | StartContainers () |
| void | StopContainers () |
| Ends every container started by StartContainers. Safe to call if none were started. | |
| ERRORCODE | StartDetector () |
| Starts PanoptesDetector.exe from the service's folder with the rules in its rules subfolder, in the same job as the containers so it ends with the service. Does nothing (and succeeds) when the detector is not installed. | |
| std::wstring | DetectorExecutablePath () |
| The path the service starts the detector from: PanoptesDetector.exe in the service's folder. Only a process running this file may use the detector RPCs. | |
| bool | IsServiceChildProcess (HANDLE process) |
| Whether a process is one the service started (a container or the detector). | |
| std::wstring DetectorExecutablePath | ( | ) |
The path the service starts the detector from: PanoptesDetector.exe in the service's folder. Only a process running this file may use the detector RPCs.
Definition at line 116 of file containers.cpp.
References MAX_PATH.
Referenced by IsDetectorPeer(), and StartDetector().
| bool IsServiceChildProcess | ( | HANDLE | process | ) |
Whether a process is one the service started (a container or the detector).
| process | A handle with PROCESS_QUERY_LIMITED_INFORMATION access |
Definition at line 171 of file containers.cpp.
| ERRORCODE StartContainers | ( | ) |
Definition at line 51 of file containers.cpp.
References BuildContainerCommandLine(), CONTAINER_START, Configuration::CONTAINER_TYPE_ML, Configuration::CONTAINER_TYPE_YARA, ERRORCODE, EXT_ML, GetExecutableDirectory(), and PANO_SUCCESS.
Referenced by WinMain().
| ERRORCODE StartDetector | ( | ) |
Starts PanoptesDetector.exe from the service's folder with the rules in its rules subfolder, in the same job as the containers so it ends with the service. Does nothing (and succeeds) when the detector is not installed.
Definition at line 127 of file containers.cpp.
References CONTAINER_START, DetectorExecutablePath(), ERRORCODE, and PANO_SUCCESS.
Referenced by WinMain().
| void StopContainers | ( | ) |
Ends every container started by StartContainers. Safe to call if none were started.
Definition at line 176 of file containers.cpp.