View previous topic :: View next topic |
Author |
Message |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Tue Dec 04, 2007 7:23 pm Post subject: C++ pointer |
|
|
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 |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Tue Dec 04, 2007 7:37 pm Post subject: |
|
|
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 |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Tue Dec 04, 2007 7:37 pm Post subject: |
|
|
[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 |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Tue Dec 04, 2007 7:38 pm Post subject: |
|
|
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 |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Tue Dec 04, 2007 7:43 pm Post subject: |
|
|
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 |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Tue Dec 04, 2007 7:45 pm Post subject: |
|
|
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 |
|
 |
|