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 


C++ pointer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Tue Dec 04, 2007 7:23 pm    Post subject: C++ pointer Reply with quote

Ok,
Lets say in asm, i wanted to convert:

Code:

mov dword ptr ds:[stat]
push eax
mov eax, [Esp+4]


I'd convert to:

Code:

unsigned long CHPextract = *(int*)StatInject+X // I want X to be the "Esp+4", but i dont know hwo to do that. Help? =|
Back to top
View user's profile Send private message AIM Address MSN Messenger
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Dec 04, 2007 7:37 pm    Post subject: Reply with quote

Still trying to convert x0r's source huh? Anyways, you canot convert that because the first MOV is invalid, it has only one operand.
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue Dec 04, 2007 7:37 pm    Post subject: Reply with quote

[esp+4] is a local variable on the stack, you need to check the parameters for the function

Flyte wrote:
Still trying to convert x0r's source huh?


This too, don't be dishonest with us.

_________________
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Dec 04, 2007 7:38 pm    Post subject: Reply with quote

Flyte wrote:
Still trying to convert x0r's source huh? Anyways, you canot convert that because the first MOV is invalid, it has only one operand.

lol and also... that is a stack manipulation for hp/mp. unless he releases a GameCRC bypass along w/ it... it will never work.

_________________
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Tue Dec 04, 2007 7:43 pm    Post subject: Reply with quote

Im using x0r's source, but only to get the pointers, i have the address, but i wasnt sure what i'd do to the address to get the info, so i read x0r's source and tried to reapply it, but in c++ and without really disrupting the Crc Check
Back to top
View user's profile Send private message AIM Address MSN Messenger
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Dec 04, 2007 7:45 pm    Post subject: Reply with quote

impossible... if you really read the source... i just quickly skimmed over it he sets a jmp hook. once that happens the jump goes to the hooked function where it loads local variables into mem vars. then it can finally check for mp values. if you use x0rs method inevitably you will trigger a change in CRC. x0r did not use pointers.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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