ntqueueapcthreadex-ntdll-gadget-injection
ntqueueapcthreadex-ntdll-gadget-injection copied to clipboard
Adjust for x64 shellcode
I'm trying to get this to work for x64 shellcode. The gadget pop r64; ret
has the same opcodes as pop r32; ret
(afaik, could be mistaken). However, if I add x64 calc shellcode and compile it for x64, it doesn't seem to work. Any idea why, or what else needs to be adjusted?
Thanks :)
I got it to work by using pop rax; ret.
static BOOL gadget_match_valid(PBYTE pbAddress)
{
return *pbAddress == 0x58 && *(pbAddress +1) == 0xC3;
}
That's the only thing I changed.
Awesome, that worked. Thanks!
Hi both, I'll add x64 support to the main branch tomorrow. This is definitely an issue; so I'll keep it open for now until the changes are made.