View previous topic :: View next topic |
Author |
Message |
Twistedfate Expert Cheater Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Tue Jan 31, 2017 12:20 pm Post subject: Close Trainer on Date . |
|
|
I want my trainer deactivated on specific date is that possible ... How to do that with lua ?
|
|
Back to top |
|
|
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Tue Jan 31, 2017 1:19 pm Post subject: |
|
|
Code: |
--- Variables must be strings ---
local year = "2017"
local month = "01"
local day = "31"
print(os.date('%Y'))
if year == os.date('%Y')
then
if month == os.date('%m')
then
if day == os.date('%d')
then
print('DeActivated')
end
end
end
|
https://www.gammon.com.au/scripts/doc.php?lua=os.date
^ website for reference ^
_________________
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Jan 31, 2017 2:24 pm Post subject: |
|
|
In your last thread, you were asking about having this data checked against an online database. If that's the case, you'll need to be able to manage that data somehow, as well as be able to read and write from that database via the trainer, in some way. This, all, assuming you're wanting a unique trial period for all users in lieu of the same end-date for all. You'll also need a way to check against IP/MAC address/browser fingerprint (or whatever) to mitigate abuse.
Circumvention will probably be a breeze. Additionally, your users will need an internet connection in order to even make use of your 'demo' trainer.
All that said, having a demo is indicative of having a premium option available. If that is the case, you're presumably making really desirable and hard-to-duplicate trainers? And if all of that is true, then you should really consider educating yourself further or hiring someone that knows what they're doing - and look in to better protection mechanisms.
|
|
Back to top |
|
|
Twistedfate Expert Cheater Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Tue Jan 31, 2017 4:19 pm Post subject: |
|
|
Thank you for the code .
Thank you for your observation , I just need to but any code that exit the trainer on date , some newbies can bypass the login only but they cannot under stand the code. I am doing this until I complete Lua learning .
|
|
Back to top |
|
|
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Tue Jan 31, 2017 4:29 pm Post subject: |
|
|
If you can bypass it. It is written wrong.
If your planning on an ip or a user/password verify. Then you need to store the password user name combo on your server. User calls server they get a response of yes or no. (however you decide to do this).
Important part:
When the user gets verification of yes you send back a file/stream containing the LUA code. This way the code is never exposed to those who are not "premium".
_________________
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Tue Jan 31, 2017 7:15 pm Post subject: |
|
|
This topic already answer,
http://forum.cheatengine.org/viewtopic.php?t=602788
user verification sample :
Code: | function btnLoginClick(sender)
MyTrainer.Hide()
local int=getInternet()
URL="http://cheatengine.org/loginexample.php?username="..MyTrainer.edtUsername.Text.."&password="..MyTrainer.edtPassword.Text.."&is64bit="..tostring(cheatEngineIs64Bit())
s=int.getURL(URL)
int.destroy()
load(s)()
end
function FormClose(sender)
closeCE();
return caHide --Possible options: caHide, caFree, caMinimize, caNone
end
MyTrainer.Show() |
|
|
Back to top |
|
|
Twistedfate Expert Cheater Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Tue Jan 31, 2017 9:34 pm Post subject: |
|
|
Wow I swear I thoghot my self didnot write that post didnot mean to spam wow
|
|
Back to top |
|
|
|