![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
#include <Windows.h>#include <setupapi.h>#include <iostream>#include <string>#include "absl/flags/flag.h"#include "absl/flags/parse.h"Go to the source code of this file.
Functions | |
| ABSL_FLAG (bool, install, false, "Install Panoptes Kernel Driver, Service, and Context Menu") | |
| ABSL_FLAG (bool, uninstall, false,"Uninstall Panoptes") | |
| bool | FileExists (const std::string &filePath) |
| Checks if a file exists. | |
| bool | ServiceExists (const std::string &serviceName) |
| Checks if a service exists. | |
| VOID | InstallDriverFile (std::string infPath) |
| Installs the driver file. | |
| LONG | NewContextMenuItem () |
| Creates a new context menu item called "Scan with Panoptes" that uses the PanoptesScan.exe executable. | |
| bool | DeleteDatabase (std::string databasePath) |
| Deletes the rocksdb database file. | |
| LONG | DeleteContextMenuItem () |
| Deletes the context menu item called "Scan with Panoptes". | |
| bool | DeletePanoptesService (const std::string &serviceName) |
| Deletes the Panoptes service. | |
| bool | DeletePanoptesDriver (const std::string &filePath) |
| Deletes the Panoptes driver file. | |
| BOOL | InstallPanoptes (std::string infPath) |
| Installs the Panoptes driver, service, and adds the context menu item. | |
| BOOL | UninstallPanoptes () |
| Uninstalls the Panoptes driver, service, and removes the context menu item. | |
| int WINAPI | WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) |
| The main function for the Panoptes Setup program. | |
| ABSL_FLAG | ( | bool | , |
| install | , | ||
| false | , | ||
| "Install Panoptes Kernel | Driver, | ||
| Service | , | ||
| and Context Menu" | |||
| ) |
| ABSL_FLAG | ( | bool | , |
| uninstall | , | ||
| false | , | ||
| "Uninstall Panoptes" | |||
| ) |
| LONG DeleteContextMenuItem | ( | ) |
Deletes the context menu item called "Scan with Panoptes".
Definition at line 180 of file PanoptesSetup.cpp.
References result.
Referenced by UninstallPanoptes().
| bool DeleteDatabase | ( | std::string | databasePath | ) |
Deletes the rocksdb database file.
| databasePath | The path to the database file |
Definition at line 141 of file PanoptesSetup.cpp.
References DeleteDatabase(), and MAX_PATH.
Referenced by DeleteDatabase(), and UninstallPanoptes().
| bool DeletePanoptesDriver | ( | const std::string & | filePath | ) |
Deletes the Panoptes driver file.
| filePath | The path to the driver file |
Definition at line 225 of file PanoptesSetup.cpp.
Referenced by UninstallPanoptes().
| bool DeletePanoptesService | ( | const std::string & | serviceName | ) |
Deletes the Panoptes service.
| serviceName | The name of the service |
Definition at line 196 of file PanoptesSetup.cpp.
References result.
Referenced by UninstallPanoptes().
| bool FileExists | ( | const std::string & | filePath | ) |
Checks if a file exists.
Check if a file exists.
| filePath | The path to the file |
Definition at line 16 of file PanoptesSetup.cpp.
Referenced by InstallPanoptes(), and UninstallPanoptes().
| VOID InstallDriverFile | ( | std::string | infPath | ) |
Installs the driver file.
| infPath | The path to the INF file |
Definition at line 50 of file PanoptesSetup.cpp.
Referenced by InstallPanoptes().
| BOOL InstallPanoptes | ( | std::string | infPath | ) |
Installs the Panoptes driver, service, and adds the context menu item.
| infPath | The path to the INF file |
Definition at line 246 of file PanoptesSetup.cpp.
References FileExists(), InstallDriverFile(), NewContextMenuItem(), and ServiceExists().
Referenced by WinMain().
| LONG NewContextMenuItem | ( | ) |
Creates a new context menu item called "Scan with Panoptes" that uses the PanoptesScan.exe executable.
Definition at line 58 of file PanoptesSetup.cpp.
References result.
Referenced by InstallPanoptes().
| bool ServiceExists | ( | const std::string & | serviceName | ) |
Checks if a service exists.
| serviceName | The name of the service |
Definition at line 27 of file PanoptesSetup.cpp.
Referenced by InstallPanoptes(), and UninstallPanoptes().
| BOOL UninstallPanoptes | ( | ) |
Uninstalls the Panoptes driver, service, and removes the context menu item.
Definition at line 276 of file PanoptesSetup.cpp.
References DeleteContextMenuItem(), DeleteDatabase(), DeletePanoptesDriver(), DeletePanoptesService(), FileExists(), and ServiceExists().
Referenced by WinMain().
| int WINAPI WinMain | ( | HINSTANCE | hInstance, |
| HINSTANCE | hPrevInstance, | ||
| LPSTR | lpCmdLine, | ||
| int | nCmdShow | ||
| ) |
The main function for the Panoptes Setup program.
| hInstance | The instance of the application |
| hPrevInstance | The previous instance of the application |
| lpCmdLine | The command line arguments |
Definition at line 309 of file PanoptesSetup.cpp.
References InstallPanoptes(), and UninstallPanoptes().