basically what i want todo is scan this process for all the ints with
the value 5, i am close to getting it working but i think something is
missing , can anyone take alook at my code , thanks
the code formatting messed up scroll down to see the code on pastebin.
Please log in or register to post a reply.
Please use the [ code ]…[ /code ] tags and post your code with proper
formatting so we can read it. :)
That is certainly incorrect:
if (memcmp(offset, findme, 7) == 0)
Instead of 7 must be sizeof(int) or sizeof(five) or sizeof(findme).
code has been changed , i really dont know whats happened to the first
i am going to have to use pastebin
what i want todo , when its found the int with the value 5 i want to
output the ints address’s and the found address so i know its really
found it, thanks
if i make a test app like this, it dosent find this :/ so something is
using namespace std;
int _tmain(int argc, _TCHAR* argv)
int five = 5;
cout << &five << endl;
You have uninitialized dwStart variable.
if(&five > mbi.BaseAddress && &five <= ((int*)mbi.BaseAddress)+mbi.RegionSize)
is confusing. Do you want to find variable five in the same process, not
another? If so, then the line is wrong, must be
if(&five >= mbi.BaseAddress && &five <= (char*)mbi.BaseAddress+mbi.RegionSize-sizeof(five))
that code is actually to test if its close to finding it, yes this is
the process i am scanning