Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cant Hack my Own Prog...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
psycrush
How do I cheat?
Reputation: 0

Joined: 22 Mar 2012
Posts: 2

PostPosted: Thu Mar 22, 2012 3:57 pm    Post subject: Cant Hack my Own Prog... Reply with quote

Hi
Im working with CE6.1 and i have Completed the Tutrorial.

Now i created an own Prog to test it.

I found the Adresses and can Manipulate, but i cant find the base Pointer!
After every restart all Pointers are useless.

I Compiled it in Visual Studio 2010 W32 Console Application:

Code:

#include <iostream>
using namespace std;

int main()
{
   int i = 0;
   int j = 5;
   int *p = &i;
   int option = 0;
   bool run = true;

   

   while(run)
   {
      cout << "Option: ";
      cin>>option; 
      if(option == 0)
      {
         run = false;
      }
      if(option == 1)
      {
         *p = *p+1;
         j++;
         cout << "*p: " << &p << endl;
         cout << "&i: " << &i << endl;
         cout << "&j" << &j << endl;
         cout << "p: " << *p << endl;
         cout << "j: " << j << endl;
      }
   }
   return 0;
}


Makes the Visual Studio Extra Safe Code?
Why i cant find the green base Pointer?

Im happy for every kind of Answer.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25831
Location: The netherlands

PostPosted: Thu Mar 22, 2012 4:04 pm    Post subject: Reply with quote

Same as http://forum.cheatengine.org/viewtopic.php?t=549723

Your pointers are stored on the stack(black) and your program is too simple. Move the variables to a global context)
Once your program grows you will leave pointers in static places (Window creations love pointers to structures, and that is just the beginning)

Alternatively, instead of pointers use code injection to store the address of ebp

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
psycrush
How do I cheat?
Reputation: 0

Joined: 22 Mar 2012
Posts: 2

PostPosted: Thu Mar 22, 2012 4:27 pm    Post subject: Reply with quote

ahh that helps me

Thanks Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites