![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
#include <Windows.h>#include <evntrace.h>#include <stdio.h>#include <evntcons.h>#include <string>#include <tdh.h>#include <assert.h>#include <memory>#include <in6addr.h>#include <chrono>#include <iomanip>#include <sstream>#include <nlohmann/json.hpp>#include "pano_log.h"#include "utils.h"#include "service_constants.h"#include "grpc.hpp"#include "panoptes_service.h"Go to the source code of this file.
Functions | |
| std::string | FormatSystemTime (const FILETIME &ft) |
| std::optional< GUID > | GetProviderGuid (const std::string &providerNameToFind) |
| std::vector< GUID > | GetProvidersGUID (std::vector< std::string > providers) |
| void | DisplayEventInfo (PEVENT_RECORD rec, PTRACE_EVENT_INFO info) |
| https://github.com/zodiacon/Win10SysProgBookSamples/blob/9f2d1bb61a24fee4e08ec46738680e44f6c132de/Chapter20/ParseETW/ParseETW.cpp#L131 | |
| VOID WINAPI | EventRecordCallback (EVENT_RECORD *pEventRecord) |
| ULONG WINAPI | BufferCallback (EVENT_TRACE_LOGFILE *pLogFile) |
| ULONG | StopAndDeleteTrace () |
| VOID | StopPanoptesTrace () |
| ULONG | StartPanoptesTrace (LPVOID lpParam) |
Variables | |
| TRACEHANDLE | hTrace = 0 |
| ULONG | result |
| ULONG | bufferSize |
| EVENT_TRACE_LOGFILEW | trace |
| EVENT_TRACE_PROPERTIES * | traceProp = nullptr |
| ULONG WINAPI BufferCallback | ( | EVENT_TRACE_LOGFILE * | pLogFile | ) |
Definition at line 266 of file events.cpp.
| void DisplayEventInfo | ( | PEVENT_RECORD | rec, |
| PTRACE_EVENT_INFO | info | ||
| ) |
| rec | |
| info |
Definition at line 102 of file events.cpp.
References FormatSystemTime(), SelfQueuePeScan(), ToString(), and WriteToLogFile().
Referenced by EventRecordCallback().
| VOID WINAPI EventRecordCallback | ( | EVENT_RECORD * | pEventRecord | ) |
Definition at line 243 of file events.cpp.
References DisplayEventInfo().
Referenced by StartPanoptesTrace().
| std::string FormatSystemTime | ( | const FILETIME & | ft | ) |
Definition at line 26 of file events.cpp.
Referenced by DisplayEventInfo().
| std::optional< GUID > GetProviderGuid | ( | const std::string & | providerNameToFind | ) |
Definition at line 41 of file events.cpp.
References bufferSize, and result.
Referenced by GetProvidersGUID(), and StartPanoptesTrace().
| std::vector< GUID > GetProvidersGUID | ( | std::vector< std::string > | providers | ) |
Definition at line 83 of file events.cpp.
References GetProviderGuid().
| ULONG StartPanoptesTrace | ( | LPVOID | lpParam | ) |
Definition at line 305 of file events.cpp.
References bufferSize, PanoptesContext::config, EventRecordCallback(), GetProviderGuid(), hTrace, Configuration::m_eventProviders, MAX_PATH, result, serviceContext, StopAndDeleteTrace(), and trace.
Referenced by WinMain().
| ULONG StopAndDeleteTrace | ( | ) |
Definition at line 270 of file events.cpp.
References bufferSize, and TRACE_NAMEW.
Referenced by StartPanoptesTrace().
| VOID StopPanoptesTrace | ( | ) |
Definition at line 297 of file events.cpp.
References hTrace, TRACE_NAMEW, and traceProp.
| ULONG bufferSize |
Definition at line 22 of file events.cpp.
Referenced by GetProviderGuid(), StartPanoptesTrace(), and StopAndDeleteTrace().
| TRACEHANDLE hTrace = 0 |
Definition at line 21 of file events.cpp.
Referenced by StartPanoptesTrace(), and StopPanoptesTrace().
| ULONG result |
Definition at line 22 of file events.cpp.
Referenced by AmsiScanner::AmsiScanFile(), BuildContainerCommandLine(), DeleteContextMenuItem(), DeletePanoptesService(), GenerateMD5(), GetProviderGuid(), NewContextMenuItem(), SplitString(), StartPanoptesTrace(), AMSI::TEST(), AMSI::TEST(), PE::TEST(), PE::TEST(), PE::TEST(), Yara::TEST_F(), Yara::TEST_F(), YaraScanner::YaraScanFile(), and YaraScanner::YaraScanner().
| EVENT_TRACE_LOGFILEW trace |
Definition at line 23 of file events.cpp.
Referenced by StartPanoptesTrace().
| EVENT_TRACE_PROPERTIES* traceProp = nullptr |
Definition at line 24 of file events.cpp.
Referenced by StopPanoptesTrace().