![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
#include "utils.h"#include <algorithm>#include <Shlwapi.h>#include <stdexcept>#include <vector>#include <sstream>#include <iomanip>Go to the source code of this file.
Functions | |
| bool | IsRunningAsAdmin () |
| bool | FileExists (const char *filename) |
| std::string | ToString (const std::wstring &wstr) |
| std::string | ToLower (std::string str) |
| std::string | GetExecutableDirectory () |
| bool | HasCommandLineFlag (const char *flag) |
| std::string | GetBaseName (const std::string &path) |
| std::string | FormatTime (const std::time_t &time) |
| std::string | FormatSystemTime (const FILETIME &ft) |
| The log's Time format: "2026/11/15 21:05:48.123", in the FILETIME's zone (UTC). | |
| bool FileExists | ( | const char * | filename | ) |
Definition at line 34 of file utils.cpp.
| std::string FormatSystemTime | ( | const FILETIME & | ft | ) |
The log's Time format: "2026/11/15 21:05:48.123", in the FILETIME's zone (UTC).
Definition at line 109 of file utils.cpp.
| std::string FormatTime | ( | const std::time_t & | time | ) |
Definition at line 99 of file utils.cpp.
Referenced by CleanUpProtobufMessage().
| std::string GetBaseName | ( | const std::string & | path | ) |
| std::string GetExecutableDirectory | ( | ) |
Definition at line 71 of file utils.cpp.
References MAX_PATH.
Referenced by BuildContainerCommandLine(), PanoptesDatabase::InitializeDatabase(), StartContainers(), and WinMain().
| bool HasCommandLineFlag | ( | const char * | flag | ) |
| bool IsRunningAsAdmin | ( | ) |
Definition at line 10 of file utils.cpp.
Referenced by InitializeShutdown(), and WinMain().
| std::string ToLower | ( | std::string | str | ) |
| std::string ToString | ( | const std::wstring & | wstr | ) |
Definition at line 51 of file utils.cpp.
Referenced by IsDetectorPeer(), ResolveProcessImage(), and RespondToDetection().