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 


states after making a selection in the process list

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

Joined: 22 Mar 2024
Posts: 5

PostPosted: Sat Jun 29, 2024 4:07 am    Post subject: states after making a selection in the process list Reply with quote

I greet everyone.

I am trying to understand this;
On the cheat engine, we select a target program from the process list and perform operations on it. As far as I know, when we select and press Open, the processes are returned via OpenHandle, but I am not sure about this. I am trying to understand, when we select a process and press open, which functions are triggered on the target process? In other words, for example, how can we control this open event on a sample process we wrote?



calculator.png
 Description:
 Filesize:  35.99 KB
 Viewed:  4079 Time(s)

calculator.png


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

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

PostPosted: Sat Jun 29, 2024 8:41 am    Post subject: Reply with quote

https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-openprocess
_________________
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
cloudche26
How do I cheat?
Reputation: 0

Joined: 22 Mar 2024
Posts: 5

PostPosted: Sat Jun 29, 2024 8:57 am    Post subject: Reply with quote

I may have come across and read this page dozens of times, but I have not found a way to perceive it.
Back to top
View user's profile Send private message
cloudche26
How do I cheat?
Reputation: 0

Joined: 22 Mar 2024
Posts: 5

PostPosted: Sun Jun 30, 2024 1:50 pm    Post subject: Reply with quote

Is there really no one who has information on this subject?
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1516

PostPosted: Sun Jun 30, 2024 3:58 pm    Post subject: Reply with quote

If you do not want to delve into very complex issues, you can see it with some codes via CE>>Table>>Lua script.

Code:
pID1 = getOpenedProcessID()

pID2 = getProcessIDFromProcessName("notepad.exe") --> Windows 10

print(pID1, pID2)


or ..
Code:
MainForm.OnProcessOpened=function(p,h,caption)
pid , name = string.match(caption,"(.-)%-(.*)")
 print("Pid: "..pid.." ("..tonumber(pid,16)..")\nName: "..name)
 print("Process: "..(process):lower())
end


or ..
Code:
pl = getProcesslist()

for id,name in pairs(pl) do
print(id.." <-> "..name)
end

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
LamontCardenas
Newbie cheater
Reputation: 1

Joined: 03 Jun 2024
Posts: 15

PostPosted: Tue Jul 02, 2024 3:44 pm    Post subject: Reply with quote

When you select a target program in Cheat Engine and press "Open," Cheat Engine typically uses the OpenProcess function to get a handle to the process. This handle allows Cheat Engine to perform various operations like reading and writing memory. The OpenProcess function uses the process ID of the target program to obtain this handle. To control or understand this "open" event in a sample process you wrote, you could implement some logging in your process to track when handles are being opened. This would involve using APIs like OpenProcess and monitoring for handle access requests.
Back to top
View user's profile Send private message
LamontCardenas
Newbie cheater
Reputation: 1

Joined: 03 Jun 2024
Posts: 15

PostPosted: Fri Jul 05, 2024 4:37 pm    Post subject: Reply with quote

When you select a process and press "Open", Cheat Engine uses the Windows API function OpenProcess to get a handle to the process. This handle allows Cheat Engine to perform various operations like reading and writing memory. If you're writing a sample process and want to control or observe this, you can look into how your process responds to handle requests. Tools like Process Monitor can see these interactions in reme. You might also want to check out the NtOpenProcess function, as it’s a lower-level call used by OpenProcess. Good luck with your exploration!
Back to top
View user's profile Send private message
luigimud
Newbie cheater
Reputation: 0

Joined: 04 Jul 2024
Posts: 10

PostPosted: Fri Jul 05, 2024 11:32 pm    Post subject: Reply with quote

You can set up Sysmon with a configuration file that includes rules for logging OpenProcess events, and If you have the necessary privileges, you can use the SeDebugPrivilege to monitor process access. This privilege allows you to bypass certain security checks and gain access to processes that would otherwise be restricted

I have a follow-up question regarding monitoring handle access requests. Is there a specific API or tool that can help me log and track these requests efficiently? For example, how can I detect when Cheat Engine or any other application tries to open a handle to my process?

Are there any sample codes or resources you would recommend for setting up such monitoring?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Jul 06, 2024 1:46 am    Post subject: Reply with quote

you can use NtQuerySystemInformation and get the system handle table

this works unless something has patched that (which is what a certain CE script does)

_________________
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
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