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 


Is this a good script?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
omoe
Grandmaster Cheater
Reputation: 8

Joined: 11 Jun 2013
Posts: 547

PostPosted: Mon Jul 29, 2013 1:42 pm    Post subject: Is this a good script? Reply with quote

I just made this for Shadowrun players health
i found out that i should change the opcode value which changes when i restart the game with ? , i dont even know if this is a good script or not
i kept trying to change the codes and stuff but the game was always crashing so i just replaced everything with nop lol .But its working perfectly tho .

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
registersymbol(aob4)
aobscan(aob4, 89 87 88 00 00 00 39 3F 8B 05 B4 ?A ?? 1? 89 85 FC FE FF FF 0F B6 87 97 01 00 00 85 C0 74 25 8B 05 B8 ?A ?? 1?)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
nop
originalcode:
nop
nop
nop
nop
nop

exit:
jmp returnhere

aob4:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
aob4:
mov [edi+00000088],eax
 unregistersymbol(aob4)"
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Mon Jul 29, 2013 5:59 pm    Post subject: Reply with quote

If its working then sure its good script.
But you dont need allocate memory since you're nopping the opcode.
You could just scan and replcae its with 0x90 (NOP)

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
omoe
Grandmaster Cheater
Reputation: 8

Joined: 11 Jun 2013
Posts: 547

PostPosted: Tue Jul 30, 2013 12:29 am    Post subject: Reply with quote

DaSpamer wrote:
If its working then sure its good script.
But you dont need allocate memory since you're nopping the opcode.
You could just scan and replcae its with 0x90 (NOP)

So same code but i should remove allocate memory , Thanks .
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Jul 30, 2013 3:05 am    Post subject: Reply with quote

That will be:
Code:
[ENABLE]
aobscan(aob4, 89 87 88 00 00 00 39 3F 8B 05 B4 ?A ?? 1? 89 85 FC FE FF FF 0F B6 87 97 01 00 00 85 C0 74 25 8B 05 B8 ?A ?? 1?)
registersymbol(aob4)

aob4:
db 90 90 90 90 90 90

[DISABLE]
aob4:
mov [edi+00000088],eax
unregistersymbol(aob4)





There is another way.

Signatures that do not cover the injection point are great too. This allows to toggle a hack regardless of whether it has already been applied or not (you enabled script, then you closed CE, and after a while you want to disable cheat, just launch CE again, enable script then disable)

Your current array of byte seems to be long enough for this version too:
Code:
[ENABLE]
aobscan(aob4, 39 3F 8B 05 B4 ?A ?? 1? 89 85 FC FE FF FF 0F B6 87 97 01 00 00 85 C0 74 25 8B 05 B8 ?A ?? 1?)  // I removed 6 first bytes, aob4 will point at location+6
registersymbol(aob4)

aob4-6:
db 90 90 90 90 90 90

[DISABLE]
aob4-6:
mov [edi+00000088],eax
unregistersymbol(aob4)

_________________
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 -> 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