Skip to content

Commit

Permalink
fix(injection): fix arch support logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dledda-r7 committed Oct 23, 2024
1 parent 85de853 commit 5d848a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/meterpreter/source/metsrv/pool_party.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ BOOL supports_poolparty_injection(DWORD dwSourceArch, DWORD dwDestinationArch) {
dprintf("[INJECT][supports_poolparty_injection] dwSourceArch: %d dwDestinationArch: %d", dwSourceArch, dwDestinationArch);
dprintf("[INJECT][supports_poolparty_injection] os.dwMajorVersion: %d os.dwMinorVersion: %d", os.dwMajorVersion, os.dwMinorVersion);
if (os.dwMajorVersion >= 10) {
if (dwDestinationArch == dwSourceArch && (dwSourceArch == PROCESS_ARCH_X64 || dwSourceArch == PROCESS_ARCH_X86)) {
if (dwDestinationArch == PROCESS_ARCH_X64 && (dwSourceArch == PROCESS_ARCH_X64 || dwSourceArch == PROCESS_ARCH_X86)) {
return TRUE;
}
}
Expand Down

0 comments on commit 5d848a8

Please sign in to comment.