From f271c1f30cb0492b6388ff4b09d9bea5a22b36cc Mon Sep 17 00:00:00 2001 From: xerox Date: Mon, 17 Aug 2020 21:52:51 +0000 Subject: [PATCH] Update dllmain.cpp --- badeye/inside/dllmain.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/badeye/inside/dllmain.cpp b/badeye/inside/dllmain.cpp index 90ae9b0..2123fe7 100644 --- a/badeye/inside/dllmain.cpp +++ b/badeye/inside/dllmain.cpp @@ -110,8 +110,7 @@ namespace bedaisy void runner() { OutputDebugStringA("[lsass] main thread created!"); - const auto r6 = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, false, 11108); - if(bedaisy::read(r6, 0x7ff7f2c90000) == 0x5A4D) + if(bedaisy::read((HANDLE)-1, 0x7ff7f2c90000) == 0x5A4D) OutputDebugStringA("[lsass] read MZ!"); else OutputDebugStringA("[lsass] didnt read MZ!");