Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
KernelTestHost.cpp
Go to the documentation of this file.
1// Testhost_Kernel.cpp : This file contains the 'main' function. Program execution begins and ends there.
2//
3
4#include <iostream>
5#include "panoptes_trace.h"
6#include <string>
7
8int main()
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}
int main()
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