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 


Minecraft Auto-Assembler...

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

Joined: 07 Jun 2010
Posts: 35

PostPosted: Sat Jul 02, 2011 7:00 pm    Post subject: Minecraft Auto-Assembler... Reply with quote

I'm attempting to hack a game called Minecraft, created by Notch.

To freeze my hp at full value (20), I use auto-assembler.

Code:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(exit)
label(originalcode)
label(mchplab)
registersymbol(mchplab)
aobscan(mchpaob,89 04 19 e9 cd 00 00)

mchpaob:
mchplab:
call newmem
nop
returnhere:

newmem:
mov [ecx+ebx],14 //sets health to 20
jmp 00A1FD7A

originalcode:
mov [ecx+ebx],eax
jmp 00A1FD7A

exit:
jmp returnhere

[DISABLE]
dealloc(newmem)
mchplab:
mov [ecx+ebx],eax
jmp 00A1FD7A
unregistersymbol(mchplab)


Every time I enable it, minecraft crashes. Is there an error in my code?

_________________
I like pie so much, that no group could ever sum up to the value of how much of I like pie.


Last edited by efficacy28 on Mon Jul 04, 2011 3:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
Xblade Of Heaven
Master Cheater
Reputation: 0

Joined: 16 Oct 2005
Posts: 395
Location: DEAD

PostPosted: Sat Jul 02, 2011 7:08 pm    Post subject: Reply with quote

first call newmem, try changing call by a jmp newmem ( jmp = 5 bytes ), call can cause problems.

wrong opcode, the real health obcode is mov edi,[esi+00000180] ( in 1.4 version ), 1.7 no idea.

mov [esi+00000180],(int)20//full health

mov [ecx+ebx],eax this is a possible memory stack

sorry me bad english.

regards

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

Joined: 07 Jun 2010
Posts: 35

PostPosted: Sun Jul 03, 2011 1:55 pm    Post subject: Reply with quote

Okay nevermind, I found the problem. I'm supposed to use, "What accesses this address" to find the opcode instead of "What writes this address."

Now I have another problem. With my new code...

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(exit)
label(originalcode)
label(mchplab)
registersymbol(mchplab)
aobscan(mchpaob,8b be 84 01 00 00 83 ff 00)

mchpaob:
mchplab:
jmp newmem
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
mov [esi+00000184],(int)20

originalcode:
mov edi,[esi+00000184]

exit:
jmp returnhere



[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
mchplab:
mov edi,[esi+00000184]
unregistersymbol(mchplab)


... it doesn't work when I enable it for the first time. I think it's the AOB scanner. Because when I enable it, cheat engine just freezes for a few seconds and nothing happens. But, when I go to scan for array of byte...

Code:
8b be 84 01 00 00 83 ff 00


... manually in the memory view/disassembler, it works after I enable it again. What's happening?

_________________
I like pie so much, that no group could ever sum up to the value of how much of I like pie.
Back to top
View user's profile Send private message
BTGbullseye
Newbie cheater
Reputation: 0

Joined: 04 Mar 2009
Posts: 24
Location: Somewhere in the USA

PostPosted: Mon Jul 04, 2011 4:30 am    Post subject: Reply with quote

efficacy28 wrote:
Okay nevermind, I found the problem. I'm supposed to use, "What accesses this address" to find the opcode instead of "What writes this address."

Now I have another problem. With my new code...

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(exit)
label(originalcode)
label(mchplab)
registersymbol(mchplab)
aobscan(mchpaob,8b be 84 01 00 00 83 ff 00)

mchpaob:
mchplab:
jmp newmem
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
mov [esi+00000184],(int)20

originalcode:
mov edi,[esi+00000184]

exit:
jmp returnhere



[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
mchplab:
mov edi,[esi+00000184]
unregistersymbol(mchplab)


... it doesn't work when I enable it for the first time. I think it's the AOB scanner. Because when I enable it, cheat engine just freezes for a few seconds and nothing happens. But, when I go to scan for array of byte...

Code:
8b be 84 01 00 00 83 ff 00


... manually in the memory view/disassembler, it works after I enable it again. What's happening?


Try this maybe?

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(exit)
label(originalcode)
label(mchplab)
registersymbol(mchplab)
aobscan(mchpaob,8b be 84 01 00 00 83 ff 00)

mchpaob:
mchplab:
jmp newmem
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
mov [esi+00000184],(int)20

originalcode:
//mov edi,[esi+00000184]

exit:
jmp returnhere



[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
mchplab:
mov edi,[esi+00000184]
unregistersymbol(mchplab)


I haven't ever used the aobscan feature before though, so you might have something wrong with that...

Also, why did you put my screenname in the thread title?
Back to top
View user's profile Send private message
DJK
Cheater
Reputation: 0

Joined: 13 Sep 2010
Posts: 34

PostPosted: Mon Jul 04, 2011 6:55 am    Post subject: Reply with quote

My name is there from my perspective, I think its some form of tag that replaces with the current logged in user viewing it or something ..
Back to top
View user's profile Send private message
efficacy28
Cheater
Reputation: 0

Joined: 07 Jun 2010
Posts: 35

PostPosted: Mon Jul 04, 2011 9:53 am    Post subject: Reply with quote

BTGbullseye wrote:


Try this maybe?

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(exit)
label(originalcode)
label(mchplab)
registersymbol(mchplab)
aobscan(mchpaob,8b be 84 01 00 00 83 ff 00)

mchpaob:
mchplab:
jmp newmem
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
mov [esi+00000184],(int)20

originalcode:
//mov edi,[esi+00000184]

exit:
jmp returnhere



[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
mchplab:
mov edi,[esi+00000184]
unregistersymbol(mchplab)


I haven't ever used the aobscan feature before though, so you might have something wrong with that...

Also, why did you put my screenname in the thread title?


Wait, what is the difference between yours and my original script? And if you wan't someone's attention, use the BBcode:
"readername" and replace the quotes with brackets [ ]

Sup Hitler!

_________________
I like pie so much, that no group could ever sum up to the value of how much of I like pie.
Back to top
View user's profile Send private message
BTGbullseye
Newbie cheater
Reputation: 0

Joined: 04 Mar 2009
Posts: 24
Location: Somewhere in the USA

PostPosted: Thu Jul 07, 2011 4:16 pm    Post subject: Reply with quote

efficacy28 wrote:
Wait, what is the difference between yours and my original script?

I made it not run the original code immediately after your new code ran. For some reason I've noticed that the script runs the originalcode stuff if you don't comment it out.


efficacy28 wrote:
And if you wan't someone's attention, use the BBcode:
"readername" and replace the quotes with brackets [ ]

Sup BTGbullseye!

Ah, cool... Didn't know that, thanks. Smile
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 Gamehacking 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