| View previous topic :: View next topic |
| Author |
Message |
colverload How do I cheat?
Reputation: 0
Joined: 23 Apr 2016 Posts: 2
|
Posted: Sat Apr 23, 2016 10:08 pm Post subject: How can I openprocess through?? |
|
|
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 |
|
 |
_Veggy Cheater
Reputation: 2
Joined: 30 Apr 2013 Posts: 34 Location: BReWErS rox your dox
|
Posted: Sun Apr 24, 2016 1:38 am Post subject: |
|
|
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 |
|
 |
colverload How do I cheat?
Reputation: 0
Joined: 23 Apr 2016 Posts: 2
|
Posted: Sun Apr 24, 2016 1:47 am Post subject: thanks for the reply |
|
|
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 |
|
 |
|