mirror of
https://github.com/toneillcodes/windows-process-injection
synced 2026-06-21 14:11:25 +00:00
18 lines
462 B
C++
18 lines
462 B
C++
#include <stdio.h>
|
|
|
|
#include "syscall-utils.h"
|
|
|
|
int main() {
|
|
HMODULE hModule = GetModuleHandleA("ntdll.dll");
|
|
PVOID funcAddress = GetProcAddress(hModule, "NtCreateThreadEx");
|
|
|
|
if (funcAddress) {
|
|
DWORD ssn = GetSSN(funcAddress);
|
|
PVOID sysAddr = GetSyscallAddress(funcAddress);
|
|
|
|
printf("Function: NtCreateThreadEx\n");
|
|
printf("SSN: 0x%04X\n", ssn);
|
|
printf("Syscall: 0x%p\n", sysAddr);
|
|
}
|
|
return 0;
|
|
} |