Skip to content

Commit

Permalink
Anti-attach: increase function buffer sizes
Browse files Browse the repository at this point in the history
Fixes #155
  • Loading branch information
Mattiwatti committed Jul 29, 2023
1 parent b854ab1 commit baa5c8e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions PluginGeneric/Injector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,14 +689,9 @@ bool RemoveDebugPrivileges(HANDLE hProcess)
return false;
}

#define DbgBreakPoint_FUNC_SIZE 2
#ifdef _WIN64
#define DbgUiRemoteBreakin_FUNC_SIZE 0x42
#define NtContinue_FUNC_SIZE 11
#else
#define DbgUiRemoteBreakin_FUNC_SIZE 0x54
#define NtContinue_FUNC_SIZE 0x18
#endif
#define DbgBreakPoint_FUNC_SIZE 0x10
#define DbgUiRemoteBreakin_FUNC_SIZE 0x80
#define NtContinue_FUNC_SIZE 0x40

typedef struct _PATCH_FUNC {
PCHAR funcName;
Expand Down

0 comments on commit baa5c8e

Please sign in to comment.