View previous topic :: View next topic |
Author |
Message |
AylinCE Grandmaster Cheater Supreme Reputation: 32
Joined: 16 Feb 2017 Posts: 1260
|
Posted: Wed Jul 17, 2019 5:01 pm Post subject: Re: How to autorun exe files with lua code in cetrainer |
|
|
driskoaval wrote: | hey bois i want to inject exe files in the cetrainer
example when i open the cetrainer the exe file will auto opens |
It does not turn on automatically.
First add the .exe to the Trainer,
Then you will download this .exe 'to the desktop with a button. (or Temp or CE Autorun)
Then you can open it.
Autorun File Path:
Code: |
scriptFile = getCheatEngineDir()..'autorun'
--Make sure the .exe file is attached to the Trainer.
local file1 = 'myTrainer.exe'
function CEButton1Click(sender)
findTableFile(file1).saveToFile(scriptFile..'\\'..file1) --
shellExecute(scriptFile.."\\myTrainer.exe")
--remove myTrainer.exe
function CEButton2Click(sender)
os.remove(scriptFile.."\\myTrainer.exe")
end
end |
Enjoy ..
_________________
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 32
Joined: 16 Feb 2017 Posts: 1260
|
Posted: Thu Jul 18, 2019 6:27 am Post subject: Re: How to autorun exe files with lua code in cetrainer |
|
|
driskoaval wrote: |
oh but i want inject this code in .CETRAİNER
when i open cetrainer i want auto open exe .
türkçe cevap versene türksen plz |
1) CT Form tasarımcısını aç.
2) Aşağıdaki kodu Formun "Olaylar" penceresinde eşleştir.
myTrainer.exe = senin .exe program, bunları da düzenle
UDF1 = Senin trainer adına örnek, bunu da düzenle.
Code: | local scriptFile = getCheatEngineDir()..'autorun'
local file1 = 'myTrainer.exe'
function FormShow(sender)
findTableFile(file1).saveToFile(scriptFile..'\\'..file1) --
shellExecute(scriptFile.."\\myTrainer.exe")
end |
yada eşleştiremezsen şunu kullan, kopyala formun lua script'ine yapıştır.
Not: Trainer (Form) isimlerini düzenlemeyi unutma, benim verdiğim örnektir
Code: | local scriptFile = getCheatEngineDir()..'autorun'
local file1 = 'myTrainer.exe'
--UDF1 = senin Form adı, bunu düzenle..
UDF1.OnShow = function()
findTableFile(file1).saveToFile(scriptFile..'\\'..file1) --
shellExecute(scriptFile.."\\myTrainer.exe")
end |
--Trainer kapatıldığında Yüklediğin .exe'yi silmek istiyorsan. Formun Close olayına şunu ekle..
Code: | os.execute("taskkill /F /IM myTrainer.exe") --açıksa program önce kapatacak.
os.remove(scriptFile.."\\myTrainer.exe") -- Sonra programı silecek
os.execute(cmd) --Bu yönergeleri cmd yaptığı için onuda kapatmalısın |
veya onu da formun okumasını sağlarsın:
Code: | UDF1.OnClose = function()
os.execute("taskkill /F /IM myTrainer.exe") --açıksa program önce kapatacak.
os.remove(scriptFile.."\\myTrainer.exe") -- Sonra programı silecek
os.execute(cmd) --Bu yönergeleri cmd yaptığı için onuda kapatmalısın
closeCE()
return caFree() -- ve trainer de kapatılır
end |
Tadını çıkar
_________________
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 32
Joined: 16 Feb 2017 Posts: 1260
|
Posted: Fri Jul 19, 2019 12:03 pm Post subject: Re: How to autorun exe files with lua code in cetrainer |
|
|
driskoaval wrote: |
aga şu kodu şifrelermisin. sonrada bana nasıl şifreleneeceğini anlatırmısın?
obfuscate yani nasıl obfuscateliycem. bu kodun obfuscatlenmiş halini atsana plz. |
==============================
Doğru kodlamaya ulaştığına sevindim.
Gelelim diğer isteğine.
Fakat CE Forum global dili "İngilizce" olduğu için ve
diğer kullanıcıların bu çözümlere ulaşabilmeleri için
devamını, kötü çeviri de olsa ingilizce yapacağım.
Anlayışın için teşekkürler.
===============================
When you ask a question and get an answer:
(and this answer works for you)
This is reflected in the "Thank You" and "Rep Score" if you wish.
But if you want people to write code for you:
This brings about different incentives such as "Donation".
Nevertheless, they produce codes with the "Masters" initiative,
And they share these codes in an archive.
Here's a similar solution to the problem available in this archive.
( https://forum.cheatengine.org/viewforum.php?f=130 )
This forum has the CE Classic Lua Script encryption:
(Take it as an example and try to improve it.)
https://forum.cheatengine.org/viewtopic.php?t=609124
( Always read reviews, reviews develop ideas. )
And here is the video of how to use it:
https://www.youtube.com/watch?v=rGrItDGFSwQ&list=PL1yPHiegVpRoWx7jy6ecTqmbejos75O37&index=77&t=0s
And finally: never hesitate to use it.
This link is a large archive.
https://forum.cheatengine.org/search.php
Enjoy it!
_________________
|
|
Back to top |
|
|
|