diff --git a/ShellcodeFluctuation/main.cpp b/ShellcodeFluctuation/main.cpp index c62ea45..a479d8c 100644 --- a/ShellcodeFluctuation/main.cpp +++ b/ShellcodeFluctuation/main.cpp @@ -95,7 +95,9 @@ void initializeShellcodeFluctuation(const LPVOID caller) if (reinterpret_cast(caller) > reinterpret_cast(mbi.BaseAddress) && reinterpret_cast(caller) < (reinterpret_cast(mbi.BaseAddress) + mbi.RegionSize)) { + // // Store memory boundary of our shellcode somewhere globally. + // g_fluctuationData.shellcodeAddr = mbi.BaseAddress; g_fluctuationData.shellcodeSize = mbi.RegionSize; g_fluctuationData.protect = mbi.Protect; @@ -105,7 +107,9 @@ void initializeShellcodeFluctuation(const LPVOID caller) std::mt19937 rng(dev()); std::uniform_int_distribution dist4GB(0, 0xffffffff); + // // Use random 32bit key for XORing. + // g_fluctuationData.encodeKey = dist4GB(rng); log("[+] Fluctuation initialized.");