From 938d929de632c3df0c6768392f3d651381a1a277 Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Tue, 27 Dec 2022 16:36:52 +0100 Subject: [PATCH] Log process name --- src/driver/driver_main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/driver/driver_main.cpp b/src/driver/driver_main.cpp index a9c2c7e..c2fe66a 100644 --- a/src/driver/driver_main.cpp +++ b/src/driver/driver_main.cpp @@ -5,6 +5,7 @@ #include "exception.hpp" #include "hypervisor.hpp" #include "globals.hpp" +#include "process.hpp" #include "process_callback.hpp" #define DOS_DEV_NAME L"\\DosDevices\\HyperHook" @@ -72,7 +73,11 @@ private: { if (this->hypervisor_.cleanup_process(process_id)) { - debug_log("Handled termination of %X\n", process_id); + const auto proc = process::find_process_by_id(process_id); + if(proc) + { + debug_log("Handled termination of %s\n", proc.get_image_filename()); + } } } }