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 


Close Trainer on Date .

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Tue Jan 31, 2017 12:20 pm    Post subject: Close Trainer on Date . Reply with quote

I want my trainer deactivated on specific date is that possible ... How to do that with lua ?
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Tue Jan 31, 2017 1:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Jan 31, 2017 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Tue Jan 31, 2017 4:19 pm    Post subject: Reply with quote

Quote:
akumakuja28
Thank you for the code .
Quote:
++METHOS
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
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Tue Jan 31, 2017 4:29 pm    Post subject: This post has 1 review(s) Reply with quote

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
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Tue Jan 31, 2017 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Tue Jan 31, 2017 9:34 pm    Post subject: Reply with quote

Wow I swear I thoghot my self didnot write that post didnot mean to spam wow
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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