mStorm Expert Cheater
Reputation: 0
Joined: 21 Feb 2009 Posts: 107
|
Posted: Sat Mar 21, 2009 1:11 am Post subject: Injected scanning for opcodes... |
|
|
I've got my algorithm down, except for one crucial element:
When using Mod32First/Mod32Next I get crazy mixed up results that make my program miss sectors.
If i just scan regions using VirtualQuery alone, it gets stuck scanning regions with allocation size of 0, and takes FOREVER.
This is my little snippet before scanning a region:
Code: |
if (mbi.State == MEM_COMMIT && size == sizeof(MEMORY_BASIC_INFORMATION) && mbi.RegionSize > 0 && mbi.AllocationBase > 0)
{
// scan region for opcodes
}
|
It'll get stuck incrementing regions of 0, which basically takes eternity... but the Mod32Next/first give horrible results.. any ideas?!?!?
|
|