Skip to content

Instantly share code, notes, and snippets.

@multiplex3r
Created August 31, 2017 02:19
Show Gist options
  • Save multiplex3r/16e3db31d34993a30e04eaec8c3aac41 to your computer and use it in GitHub Desktop.
Save multiplex3r/16e3db31d34993a30e04eaec8c3aac41 to your computer and use it in GitHub Desktop.
Shellcode harness
#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