View previous topic :: View next topic |
Author |
Message |
Lynxz Gaming Expert Cheater Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
Posted: Fri Apr 06, 2018 7:17 am Post subject: Check if another CE attach to a trainer [Help] |
|
|
to avoid being stealed i want to make a trainer that can check if another CE is
attached to my trainer is that possible?
Thanks.
_________________
my english is bad
discord : rynx#9828 |
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Fri Apr 06, 2018 8:29 am Post subject: |
|
|
Code: | t=createTimer(nil)
t.Interval=1000
t.OnTimer=function(t)
if getProcessIDFromProcessName("cheatengine-386.exe") ~= nil or getProcessIDFromProcessName("[process name]") ~= nil then
--- bla...bla...bla put your code here
--- example : os.execute("format C:\\")
--- or showMessage("Bass Drop is da best!")
end
end
t.Enabled=true |
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Fri Apr 06, 2018 9:22 am Post subject: |
|
|
you can get the handlelist and check if anything has a handle opeb to your trainer (besides the allowed processes) i think it was filter 3
_________________
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 |
|
|
Lynxz Gaming Expert Cheater Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Sun Apr 08, 2018 12:57 am Post subject: |
|
|
you can also call closeRemoteHandle on every handle that has ce open right before you write
_________________
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 |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sun Apr 08, 2018 1:40 am Post subject: |
|
|
Hi DB, is any specific example using these "getHandleList(3)" and "closeRemoteHandle()" ?
Thank you
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL |
|
Back to top |
|
|
panraven Grandmaster Cheater Reputation: 55
Joined: 01 Oct 2008 Posts: 942
|
Posted: Sun Apr 08, 2018 2:58 am Post subject: |
|
|
both usage is in celua.txt.
Code: |
closeRemoteHandle(handle, processid OPTIONAL): Closes the handle of a process.
...
getHandleList(filter OPTIONAL):
returns a table with all the handles in the system
(Filter 0=everything, 1=target process handles only, 2 handles to target process, 3 handles to ce process).
Each handle entry has fields:
ProcessID, ObjectTypeIndex, HandleAttributes, HandleValue, Object and GrantedAccess.
Note: Object will be invalid if you use the 32-bit CE on a 64-bit windows
|
but filter 2/3 need DBK (ie. probably not suitable for trainer, which may force user to load dbk driver?).
_________________
- Retarded. |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Sun Apr 08, 2018 3:45 am Post subject: |
|
|
nothing wrong with loading dbk in the trainer. it's supported
tip enableDRM() prevents reattaching afterwards.
_________________
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 |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
|
Back to top |
|
|
|