Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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