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 


How to copy pointer value to an allocated address.
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
richie86
Grandmaster Cheater
Reputation: 0

Joined: 13 Jan 2006
Posts: 664

PostPosted: Fri Dec 15, 2006 1:51 am    Post subject: How to copy pointer value to an allocated address. Reply with quote

This is the simple aa code that allocated a region and assign 0 to it.
Code:
[ENABLE]
registersymbol(X)
alloc(X,8)

X:
dd 00 // This set the value to 0

[DISABLE]
unregistersymbol(X)
dealloc(X)


what if i wish to get the value from a pointer = 007367E8 OFFSET: 574
What should I changed?
Code:
[ENABLE]
registersymbol(X)
alloc(X,8)

// This seems doesn't work
mov eax, 007367E8
add eax, 574
mov [x], eax


[DISABLE]
unregistersymbol(X)
dealloc(X)

_________________


Last edited by richie86 on Tue Dec 19, 2006 5:21 am; edited 1 time in total
Back to top
View user's profile Send private message
Death4ngel
Grandmaster Cheater Supreme
Reputation: 0

Joined: 23 Sep 2006
Posts: 1226
Location: Singapore

PostPosted: Fri Dec 15, 2006 9:34 am    Post subject: Reply with quote

[ENABLE]
registersymbol(X)
alloc(X,Cool

// This seems doesn't work
mov eax, 7367E8
add eax, 574
mov [eax], //Value you want.

[DISABLE]
unregistersymbol(X)
dealloc(X)

_________________
//GOD!!! THOSE STUPID RETARDED SHITHEADS NEVER MAKE IT PAST THIS STEP!!!!!!
//Thats why it's out....
Back to top
View user's profile Send private message MSN Messenger
richie86
Grandmaster Cheater
Reputation: 0

Joined: 13 Jan 2006
Posts: 664

PostPosted: Fri Dec 15, 2006 5:54 pm    Post subject: Reply with quote

if in this case

Code:
mov eax, 7367E8
add eax, 574
mov [eax], //Value you want.

do i still need to allocate x?

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

Joined: 23 Sep 2006
Posts: 1226
Location: Singapore

PostPosted: Fri Dec 15, 2006 8:53 pm    Post subject: Reply with quote

Ops, Sorry my bad. I never read your post properly. I thought you want to change the value of a pointer to something else.

Code:
[ENABLE]
registersymbol(X)
alloc(X,8)

// This seems doesn't work
mov eax, 007367E8
add eax, 574
mov [x], eax


[DISABLE]
unregistersymbol(X)
dealloc(X)


But it doesn't specify what is X.

_________________
//GOD!!! THOSE STUPID RETARDED SHITHEADS NEVER MAKE IT PAST THIS STEP!!!!!!
//Thats why it's out....
Back to top
View user's profile Send private message MSN Messenger
richie86
Grandmaster Cheater
Reputation: 0

Joined: 13 Jan 2006
Posts: 664

PostPosted: Sun Dec 17, 2006 7:54 am    Post subject: Reply with quote

dark byte you had any idea on my question? what i wanna do here is retrieve a value from a pointer, and assign it to an allocated address.
_________________
Back to top
View user's profile Send private message
DoomsDay
Grandmaster Cheater
Reputation: 0

Joined: 06 Jan 2007
Posts: 768
Location: %HomePath%

PostPosted: Tue Jan 09, 2007 12:28 pm    Post subject: Reply with quote

Try doing this:
Code:
mov eax, [007367E8]
add eax, [eax+574]
mov [x], eax
Back to top
View user's profile Send private message
Xblade Of Heaven
Master Cheater
Reputation: 0

Joined: 16 Oct 2005
Posts: 394
Location: DEAD

PostPosted: Tue Jan 09, 2007 11:00 pm    Post subject: Reply with quote

no work Sad
_________________
Welcome to the Hell.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
DoomsDay
Grandmaster Cheater
Reputation: 0

Joined: 06 Jan 2007
Posts: 768
Location: %HomePath%

PostPosted: Wed Jan 10, 2007 6:54 am    Post subject: Reply with quote

you still need an injection adress(Instead of 00000000/1)
Code:
[Enable]
alloc(lol, 64)
alloc(Value, 16)
registersymbol(Value)

00000000:
jmp LOL

lol:
mov eax, [007367E8]
add eax, [eax+574]
mov [Value], eax
jmp 00000001

Disable:
dealloc(lol)
dealloc(Value)
unregistersymbol(Value)
Back to top
View user's profile Send private message
sired22
Cheater
Reputation: 1

Joined: 22 Aug 2006
Posts: 36

PostPosted: Mon Jan 15, 2007 11:24 pm    Post subject: Reply with quote

try
push eax
mov eax, [007367E8]
lea eax, [eax+574]
mov [Value], eax
pop eax
jmp 00000001
Back to top
View user's profile Send private message Yahoo Messenger
Renato
Grandmaster Cheater Supreme
Reputation: 0

Joined: 27 Jun 2006
Posts: 1564

PostPosted: Sun Feb 25, 2007 11:37 pm    Post subject: Reply with quote

mov ecx,[00785F64]
mov ecx,[ecx+000005cc]
Rolling Eyes
Back to top
View user's profile Send private message
DaNemeziz
Master Cheater
Reputation: 0

Joined: 29 Sep 2007
Posts: 430

PostPosted: Wed Jul 02, 2008 9:17 am    Post subject: Reply with quote

Renato wrote:
mov ecx,[00785F64]
mov ecx,[ecx+000005cc]
Rolling Eyes

why some are usin eax and some ecx? from where you know what to use? <.< and why you are having 5cc as offset? o.O i'm confused now

---
if somebody have an answer on all that i would need it too
thanks in advance Smile
Back to top
View user's profile Send private message
CTCreator
Advanced Cheater
Reputation: 0

Joined: 23 Mar 2008
Posts: 69

PostPosted: Tue Jul 08, 2008 9:08 pm    Post subject: Reply with quote

Code:
//try this am stil noob

//some-lines if code should be here i think
X:
push eax
mov eax,[007367E8]
lea eax,[eax+23E]
pop eax



"pop eax" is the output of the value from a pointer = 007367E8 OFFSET: 574 after put inside the X value
Back to top
View user's profile Send private message
educofu
Expert Cheater
Reputation: 3

Joined: 21 Aug 2009
Posts: 171
Location: Brazil,MG,OP

PostPosted: Tue Dec 22, 2009 3:38 pm    Post subject: Reply with quote

u can try:

mov eax,[address]+offset

if multiple level:

mov eax,[[address]+offset1]+offset2

--------method 2--------

mov eax,[address]
add eax,offset

if multiple level:

mov eax,[address]
add eax,offset1
add [eax],offset2
add [eax],offset3
...

_________________
"I finally started thinking outside of the box, only to find myself in a larger box."
Back to top
View user's profile Send private message MSN Messenger
shakib187
Expert Cheater
Reputation: 0

Joined: 24 May 2007
Posts: 215

PostPosted: Thu Jun 21, 2012 6:44 am    Post subject: Reply with quote

This is so hard when you have no idea how to code >>"
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Jun 21, 2012 6:50 am    Post subject: Reply with quote

But it's a good incentive to learn coding
Just ask specific questions like what a specific line of code does and we're willing to explain

It's usually just simple logic. Most of the time you don't even need to know the more advanced stuff in programming, like arrays...

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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