Created
August 31, 2017 02:19
-
-
Save multiplex3r/16e3db31d34993a30e04eaec8c3aac41 to your computer and use it in GitHub Desktop.
Shellcode harness
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
#include <windows.h> | |
unsigned char buf[] = | |
"your" | |
"shellcode" | |
"here"; | |
void executePayload(){ | |
DWORD pewpewpew; | |
VirtualProtect(buf, sizeof(buf),PAGE_EXECUTE_READWRITE, &pewpewpew); | |
((void (*)(void))buf)(); | |
} | |
void main(){ | |
executePayload(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment