Last active
January 3, 2019 15:51
Revisions
-
JamesTheHacker revised this gist
Jan 3, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ int main(int argc, char** argv) */ HANDLE pHandle = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, pid); if (pHandle == NULL) { printf("Could not find process with pid: %i with error: %i", pid, GetLastError()); return -1; } -
JamesTheHacker revised this gist
Jan 3, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ int main(int argc, char** argv) int pid = 10964; DWORD_PTR addr = 0x7FF7BD730000; /* * Get a handle for process with specific process id */ HANDLE pHandle = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, pid); -
JamesTheHacker created this gist
Jan 3, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ #include <stdio.h> #include <Windows.h> int main(int argc, char** argv) { int pid = 10964; DWORD_PTR addr = 0x7FF7BD730000; /* * Get a handle for process with specific process id */ HANDLE pHandle = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, pid); if (pHandle == NULL) { printf("Could not find process with pid: %i", pid); return -1; } return 0; }