MCPcopy Create free account
hub / github.com/Barracudach/CallStack-Spoofer / LocateShellCode

Function LocateShellCode

include/CallStack-Spoofer.h:109–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108#ifdef _KERNEL_MODE
109 __forceinline PVOID LocateShellCode(PVOID func, size_t size = 500)
110 {
111 void* addr = ExAllocatePoolWithTag(NonPagedPool, size, (ULONG)"File");
112 if (!addr)
113 return nullptr;
114 return memcpy(addr, func, size);
115 }
116#else
117 __forceinline PVOID LocateShellCode(PVOID func, size_t size = SHELLCODE_GENERATOR_SIZE)
118 {

Callers 1

operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected