Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
Functions
KernelTestHost.cpp File Reference
#include <iostream>
#include "panoptes_trace.h"
#include <string>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 8 of file KernelTestHost.cpp.

9{
10 TraceInit();
11 HANDLE ProcessId = (HANDLE)GetCurrentProcessId();
12 HANDLE ThreadId = (HANDLE)GetCurrentThreadId();
13 std::wstring myWString = L"..\\..\\assets\\yara\\eicarcom2.zip";
14 PWCH myPWCH = const_cast<PWCH>(myWString.c_str());
15 while (1) {
16 printf("Press Enter to log a file creation event\n");
17 int test = getchar();
18 Log_FileCreated(ProcessId, ThreadId, myPWCH, false);
19 }
20}
void TraceInit()
Definition trace.cpp:10
void Log_FileCreated(HANDLE ProcessId, HANDLE ThreadId, PWCH FileName, BOOLEAN Oplocked)
Log a file create event.
Definition trace.cpp:97

References Log_FileCreated(), and TraceInit().