From dc1dedc5559baad26907b510d69aa5ab9fdd05f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Sat, 11 Mar 2023 18:49:13 +0100 Subject: [PATCH] Fixed x64 build --- Detection/SigScanner/SigScanner.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Detection/SigScanner/SigScanner.cpp b/Detection/SigScanner/SigScanner.cpp index 9e41041..7e7ce96 100644 --- a/Detection/SigScanner/SigScanner.cpp +++ b/Detection/SigScanner/SigScanner.cpp @@ -9,7 +9,11 @@ // Get the PEB's module list void GetModuleInfo(std::vector &container, std::string content) { +#if defined(_M_X64) || defined(__amd64__) + PEB* pPEB = (PEB*)__readgsdword (0x30); +#else PEB* pPEB = (PEB*)__readfsdword(0x30); +#endif LDR_DATA_TABLE_ENTRY* Current = NULL; LIST_ENTRY* CurrentEntry = pPEB->Ldr->InMemoryOrderModuleList.Flink;