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 


How to modify AllocationProtect in my process's memory?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
darpangs
Newbie cheater
Reputation: 0

Joined: 12 Jun 2008
Posts: 14
Location: busan korea

PostPosted: Thu Aug 13, 2009 11:34 pm    Post subject: How to modify AllocationProtect in my process's memory? Reply with quote

Hi guys.

I'm in some trouble now.

I used to make some cheat program against GG.

but GG has detected my program every time.

I used to update my program which is not detected anymore by GG.

but few days later, GG detect my program again.

I guess that GG scans my program's some memory portion which has
'Execute+Write Copy' protection and 'Image' Type.

so I want to cover my program's such memory regions as 'Read+Write' Protection and 'Private' Type.

I'm considering to hook kernel32!NtQueryVirtualMemory or modify some values on PTE, PDE. but I'm not sure yet.

I need to digging about this.



anyway, how can I modify AllocationProtect of the memory region?

if I use VirtualProtect, I can modify just 'Protect' property in MEMORY_BASIC_INFORMATION.

maybe GG checks the default Memory property ( AllocationProtect ) and 'Type' in MEMORY_BASIC_INFORMATION.

and one more thnig.

I want to know Memory some region's type in kernel mode.

In usermode, I can check out that type ( Mapped, Private, Image ) using VirtualQuery api.

but I can not find such api in ddk documents.

Thank you in advance.

_________________
"@..
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Aug 14, 2009 1:35 am    Post subject: Reply with quote

why not just hook virtualquery so when it tries to find what protection a region has you can return what you like
Back to top
View user's profile Send private message
darpangs
Newbie cheater
Reputation: 0

Joined: 12 Jun 2008
Posts: 14
Location: busan korea

PostPosted: Fri Aug 14, 2009 2:55 am    Post subject: maybe GG will detect it. Reply with quote

I know that ( but im not 100% sure ) GG detects stuffs kind of hooks like SSDT Hook.

one day, I hooked interrupt service routine for debug interrupt.

then GG rebooted my system immediately.

so i guess Hooking is difficult way.

Have you ever hooked some kernel stuffs before under GG running situation?

_________________
"@..
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Fri Aug 14, 2009 5:33 am    Post subject: Reply with quote

GG uses a low level modulelist (starts at fs:xxxxxxxx) to find the base address of loaded modules. Including the filepaths to those loaded modules.
I bet they'll even read the physical file if it's loaded

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
darpangs
Newbie cheater
Reputation: 0

Joined: 12 Jun 2008
Posts: 14
Location: busan korea

PostPosted: Sun Aug 16, 2009 5:54 pm    Post subject: oh... really? Reply with quote

thanks darkbyte.

then, i have to think another way...

thank you for your reply before i start digging.

anyway, DarkByte relied to me! wow!

_________________
"@..
Back to top
View user's profile Send private message AIM Address Yahoo Messenger 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