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 


Non writable memory region?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Tue Nov 05, 2013 9:20 am    Post subject: Non writable memory region? Reply with quote

Hello,I'm trying to cheat in a game called "The Microbie Story",It's an .exe game.
First,the game has some anti-debugging features that can be bypassed by setting the so called "DebugPort" item of the EPROCESS structure to 0.
Second thing,when I try to inject a code in the part :
cmp [edx+40],eax
je The Microbie Story.exe+4B0C1
I first get an error : "error in line 6 (je The Microbie Story.exe+4B0C1) this instruction can't be compiled.",even if it's just a line from the original code that I jumped.
2: After remplacing the module The Microbie Story.exe with It's base address,I tried to assign this script to my Cheat table:
Code:
[ENABLE]
alloc(newmem,1024)
label(returnhere)
newmem:
mov [edx+40],(int)50
cmp [edx+40],eax
je 0044B0C1
jmp returnhere
"The Microbie Story.exe"+4B061:
jmp newmem
returnhere:
[DISABLE]
dealloc(newmem)
"The Microbie Story.exe"+4B061:
cmp [edx+40],eax
je 0044B0C1

I can't enable the script,tried to click on "execute" instead,It said "this code can be injected,are you sure?" when I clicked yes,it said "not all instructions could be injected",and nothing happened.
I also tried to add this line under the alloc command "
Code:
fullaccess("The Microbie Story.exe"+4B061,64)
"but It didn't work,also tried the single line assembler,but still nothing.
How can I make this region writable to inject my code?
Here's a picture that shows the memory regions where I want to inject the code.
I also encountered this issue on the Zylom Yahtzee:score is stored as float but code that changes score is not writable.
Bugs:
Mispelling:"Not all code is injectable,are you sure you WAN'T to edit with this?",should be WANT.
"je The Microbie Story.exe+4B0C1" can't be compiled (because of the spaces) even if it's the original code (The Microbie Story.exe is a module).



Memory region.png
 Description:
 Filesize:  518.26 KB
 Viewed:  7982 Time(s)

Memory region.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Nov 05, 2013 9:48 am    Post subject: Reply with quote

Perhaps the parser is having trouble. Try the exact address instead of modulename+offset
Also, see if rightclicking the hexview with the code region focused and choosing make writable has an effect
If that doesn't work either then you will have to set the pagetable entry to writable manually

_________________
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
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Wed Nov 06, 2013 11:29 am    Post subject: Reply with quote

Dark Byte wrote:
Perhaps the parser is having trouble. Try the exact address instead of modulename+offset
Also, see if rightclicking the hexview with the code region focused and choosing make writable has an effect
If that doesn't work either then you will have to set the pagetable entry to writable manually


"Make page writable" didn't work.
Also tried to add it to my cheat table as AOB,when I edit it,It goes back Immediately to its original value.
Assuming that the game has some anti debugging features,there must be another anti-cheat code.
Back to top
View user's profile Send private message
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