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 


Cheat Engine Script
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
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Wed Mar 08, 2017 9:27 am    Post subject: Cheat Engine Script Reply with quote

Hi all,

I have a script in cheat engine that allows me to infinite run, it changes some code. I want to investigate more commands near by but the game crashed so all I have left is the script. The script still works and allows me to infinite run but my questions is how can I get back to the area in memory that it edits?

In the script it says "injection point blahblah + 3b61ef" however when I go to that address the code is different, I am guessing because it dynamically changes at runtime. The script still works though so it is editing the right part. How do I find that part in memory again so I can investigate more around where the script edits?

Thanks
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Wed Mar 08, 2017 9:32 am    Post subject: Reply with quote

Best post the script here, it's way easier to tell you things when seeing the code.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Mar 08, 2017 9:36 am    Post subject: Reply with quote

Going to that location in memory does not happen to show a jump instruction, by chance? Very Happy
Back to top
View user's profile Send private message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Wed Mar 08, 2017 9:36 am    Post subject: Reply with quote

Hey here is the script:

[ENABLE]

aobscanmodule(infrun,Pa.exe,50 80 7C 24 30 00 74 06 0F B6 4F 7A) // should be unique
registersymbol(infrun)

infrun+06:
db 75 06 0F B6 4F 7A

[DISABLE]

infrun+06:
db 74 06 0F B6 4F 7A

unregistersymbol(infrun)

{
// ORIGINAL CODE - INJECTION POINT: "Pa.exe"+3B61EB
......



So the above is editing the right thing and it works. However if I go to Pa.exe+3B61EB that is not the instruction it is editing anymore.

So I want to find that point where the code is being edited again so I can do some more testing. At this point I feel like I have to go through all the searches and everything again just to find where I was, but surely there is a way to get to the address through this script?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Mar 08, 2017 9:38 am    Post subject: Reply with quote

Okay. Go here: 50 80 7C 24 30 00 74 06 0F B6 4F 7A

Search for that signature using CE. Change data type to array of byte and make sure that the checkbox below, that says 'writable' has a filled-in square. Keep in mind the +6.
Back to top
View user's profile Send private message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Wed Mar 08, 2017 9:48 am    Post subject: Reply with quote

Hey I did try that, just tried again and it doesn't find anything. The writable box is checked.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Mar 08, 2017 9:50 am    Post subject: Reply with quote

If CE cannot find that signature, then you would not be able to activate that script. Make sure the script is not activated when you perform your search.
Back to top
View user's profile Send private message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Wed Mar 08, 2017 9:54 am    Post subject: Reply with quote

++METHOS wrote:
If CE cannot find that signature, then you would not be able to activate that script. Make sure the script is not activated when you perform your search.


It definitely works, I start the game and you can only sprint when you have no weapon. I activate the script with no weapon and sprint, then if I hold a weapon I can still sprint no problem.

Searched again and still nothing coming up.

Is there some way I can search the instructions?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Mar 08, 2017 9:57 am    Post subject: Reply with quote

Yes, but I stand by my previous statement.
Back to top
View user's profile Send private message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Wed Mar 08, 2017 10:00 am    Post subject: Reply with quote

++METHOS wrote:
Yes, but I stand by my previous statement.


I tried my other scripts too, e.g. no recoil and infinite ammo, neither of them show up when I search that byte array?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Mar 08, 2017 10:02 am    Post subject: Reply with quote

Take a screenshot of Cheat Engine showing what you are doing.
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Wed Mar 08, 2017 10:49 am    Post subject: Reply with quote

Rightclick on the "Writable" checkbox and select "Preset: Scan all memory".

Then try again.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Mar 08, 2017 5:14 pm    Post subject: Reply with quote

Activate the script, then go to address: infrun+06
Back to top
View user's profile Send private message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Wed Mar 08, 2017 5:18 pm    Post subject: Reply with quote

Zanzer wrote:
Activate the script, then go to address: infrun+06


Sweet this worked, thanks man Smile
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Mar 08, 2017 7:01 pm    Post subject: Reply with quote

Sigh. Very Happy
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
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