Skip to content

Commit baa5c8e

Browse files
committed
Anti-attach: increase function buffer sizes
Fixes #155
1 parent b854ab1 commit baa5c8e

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

PluginGeneric/Injector.cpp

+3-8
Original file line numberDiff line numberDiff line change
@@ -689,14 +689,9 @@ bool RemoveDebugPrivileges(HANDLE hProcess)
689689
return false;
690690
}
691691

692-
#define DbgBreakPoint_FUNC_SIZE 2
693-
#ifdef _WIN64
694-
#define DbgUiRemoteBreakin_FUNC_SIZE 0x42
695-
#define NtContinue_FUNC_SIZE 11
696-
#else
697-
#define DbgUiRemoteBreakin_FUNC_SIZE 0x54
698-
#define NtContinue_FUNC_SIZE 0x18
699-
#endif
692+
#define DbgBreakPoint_FUNC_SIZE 0x10
693+
#define DbgUiRemoteBreakin_FUNC_SIZE 0x80
694+
#define NtContinue_FUNC_SIZE 0x40
700695

701696
typedef struct _PATCH_FUNC {
702697
PCHAR funcName;

0 commit comments

Comments
 (0)