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 can I openprocess through??

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

Joined: 23 Apr 2016
Posts: 2

PostPosted: Sat Apr 23, 2016 10:08 pm    Post subject: How can I openprocess through?? Reply with quote

I found CE so powerful that it attaches to almost
any games.

After finding what data bytes to patch by using cheat engine,
Id like to write a program for it.
But there is problem using OpenProcess.
I inten to inject a dll in to the game but i face
openprocess failure.

Ive looked inside ce code on github to see how darkbyte do the magic
and he uses openprocess as well.

Maybe he uses this openprocess api from the ce driver but have no idea
how the driver inside look like.

My guess is that games handle are protected and
ce bypasses it and do the job
I would like to know how this is possible and some tips.
thanks.
Back to top
View user's profile Send private message
_Veggy
Cheater
Reputation: 2

Joined: 30 Apr 2013
Posts: 34
Location: BReWErS rox your dox

PostPosted: Sun Apr 24, 2016 1:38 am    Post subject: Reply with quote

Are you sure you are calling the API correctly?.

HANDLE WINAPI OpenProcess(
_In_ DWORD dwDesiredAccess,
_In_ BOOL bInheritHandle,
_In_ DWORD dwProcessId
);

Make sure to have the PROPER ProcessId.

The returned value is a HANDLE to the process.
To determine your rights inside the process you need to specify which
acces right you want to get like below:

invoke OpenProcess, PROCESS_QUERY_INFORMATION | PROCESS_VM_OPERATION| PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_CREATE_THREAD | PROCESS_TERMINATE, NULL, [pe32.th32ProcessID]
mov [phandle], eax

Post us your code so we can see what you try to do.
Back to top
View user's profile Send private message
colverload
How do I cheat?
Reputation: 0

Joined: 23 Apr 2016
Posts: 2

PostPosted: Sun Apr 24, 2016 1:47 am    Post subject: thanks for the reply Reply with quote

i will post the code when i get home.
thanks

Firstly, it was my bad that I've not checked debug privilege corretly.

I've not checked local user policy that only administrator had the privilege of
debug privilege token.

So I ran the loader in adminitrator rights and it injected my dll.

I'm so sorry for wasting your time, and thanks for the reply thogh.
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
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