diff --git a/DMALibrary/Memory/Memory.h b/DMALibrary/Memory/Memory.h index 6bcb8d3..2efd89c 100644 --- a/DMALibrary/Memory/Memory.h +++ b/DMALibrary/Memory/Memory.h @@ -145,7 +145,7 @@ class Memory * @param module the name of the module that you wanna find the export in * @return the export table address of the export */ - uintptr_t GetExportTableAddress(std::string import, std::string process, std::string module); + uintptr_t GetExportTableAddress(std::string import, std::string process, std::string module, bool kernel = false); /** * brief Gets the import table address of the process diff --git a/plugin/Hooks/module.cpp b/plugin/Hooks/module.cpp index a7224ba..c450f76 100644 --- a/plugin/Hooks/module.cpp +++ b/plugin/Hooks/module.cpp @@ -19,6 +19,7 @@ namespace Hooks lpme->modBaseSize = module_info->pMap[current_module].cbImageSize; lpme->modBaseAddr = (BYTE*)module_info->pMap[current_module].vaBase; strcpy(lpme->szModule, module_info->pMap[current_module].uszText); + strcpy(lpme->szExePath, module_info->pMap[current_module].uszText); return true; } @@ -36,6 +37,7 @@ namespace Hooks lpme->modBaseSize = module_info->pMap[current_module].cbImageSize; lpme->modBaseAddr = (BYTE*)module_info->pMap[current_module].vaBase; strcpy(lpme->szModule, module_info->pMap[current_module].uszText); + strcpy(lpme->szExePath, module_info->pMap[current_module].uszText); current_module++; return true; }