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!");