Skip to content

Commit

Permalink
Fix missing user32.dll VAs in IDA plugin
Browse files Browse the repository at this point in the history
Closes #85
  • Loading branch information
Mattiwatti committed Dec 24, 2019
1 parent acb15bb commit 78f736e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ScyllaHideIDAProPlugin/ScyllaHideIDAProPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ static int idaapi debug_mainloop(void *user_data, int notif_code, va_list va)
#ifndef BUILD_IDA_64BIT
if (!scl::IsWindows64() && !bHooked) // Only apply on native x86 OS, see dbg_library_unload below
{
ReadNtApiInformation(&g_hdd);

bHooked = true;
startInjection(ProcessId, &g_hdd, g_scyllaHideDllPath.c_str(), true);
}
Expand Down Expand Up @@ -258,6 +260,8 @@ static int idaapi debug_mainloop(void *user_data, int notif_code, va_list va)
if (scl::IsWindows64() && !bHooked)
{
// Bogus unload event which is actually a load of a native x64 DLL (ntdll, wow64, wow64cpu, wow64win)
ReadNtApiInformation(&g_hdd);

bHooked = true;
startInjection(ProcessId, &g_hdd, g_scyllaHideDllPath.c_str(), true);
}
Expand Down

0 comments on commit 78f736e

Please sign in to comment.