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 


XxProtectVirtualMemory from kernel driver to user aplication

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
JosexD
How do I cheat?
Reputation: 0

Joined: 09 Nov 2008
Posts: 4

PostPosted: Fri Apr 09, 2010 10:34 pm    Post subject: XxProtectVirtualMemory from kernel driver to user aplication Reply with quote

Hi !
how are you?

I've tried calling Nt and Zw ProtectVirtualMemory from a kernel mode driver to change the protection of a page of a user mode application

I've got the Nt version by KeServiceDescriptorTable.ServiceTableBase[0x89] and the Zw version by searching for the instruction mov eax, 0x00000089; I've tried using parameters defined at driver source code and also tried mapping mdl's as userland memory; though my page protection won't change
(I don't get any blue screen but my page protection doesn't change anyway)


I've only been able to change the protection of a page by hooking the std, that way I can use it fine and set the parameters I want and then protect any page; though I wanted to "call" XxProtectVirtualMemory without any hook so later I could make a trampoline

Thanks for your time reading

_________________
Love is the Way
Jesus:"Love each other as I have loved you"
Back to top
View user's profile Send private message MSN Messenger
JosexD
How do I cheat?
Reputation: 0

Joined: 09 Nov 2008
Posts: 4

PostPosted: Sat Apr 10, 2010 7:53 am    Post subject: Reply with quote

finally problems solved
I was using ZwOpenProcess incorrectly so I wasn't getting the proper process handle

both methods (mdl mapping into usermode memory, and using ZwAllocateVirtualMemory to allocate near zero) worked fine for NtProtectVirtualMemory and also for ZwProtectVirtualMemory

I'll try to clean the code a bit xD

_________________
Love is the Way
Jesus:"Love each other as I have loved you"
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 programming 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