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 


os.time
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Sun Apr 07, 2013 7:46 am    Post subject: os.time Reply with quote

Hey guys.
I tested the os.time function...
Checking and messing around..
Code:
local test    = os.time{year=2013, month=4, day=14, hour=0, min=0}
local current = os.time()
if test<=current then
 CloseClick()
 else
  showMessage("YOUNG FOREVER :D")
end

function CloseClick()
  hideAllCEWindows()
  closeCE()
  return caFree
end

Anyway,
If you try it today at the current date (7th April 2013) it won't close.
But if you move your OS time 1 week further it will close.
So if you try to make a trainer that expire after X days.
It can be bypassed easily.
by simply changing your os date few days earlier than the deadline..

I wonder if it possible to block that method.

http://www.lua.org/pil/22.1.html

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Mohsen
Advanced Cheater
Reputation: 1

Joined: 04 Apr 2013
Posts: 69
Location: PE

PostPosted: Sun Apr 07, 2013 8:16 am    Post subject: Reply with quote

Not very useful to set expire date for trainer, unless it's not a trainer but some type of crack.

OnTopic :
You can easily create a file when your trainer is expired, or keep track of how many times it's executed in that file.
You might want to apply some encryption to file structure too.

Check LUA file library for more information or be more specified on topic.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sun Apr 07, 2013 2:06 pm    Post subject: Re: os.time Reply with quote

@Mother of hack:
Mother of hack wrote:
If you try it today at the current date (7th April 2013) it won't close.
But if you move your OS time 1 week further it will close.
Odd, it works perfectly on my end. Tested with +/-1 day and +/-1 hour.


@Mohsen: It's probably a promo trainer, something like "try my trainer for 2 days and if you like it, buy it". Some other groups prefer trainers with reduced functionality, but it's just a different marketing strategy.
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Sun Apr 07, 2013 2:11 pm    Post subject: Reply with quote

@Gniarf your thoughs are right Smile.

Also, I know it works.
I just say it can be bypassed easily..
Like if you put your date to 14 April 2013 00:01 it will close.

But if for example today is 14 April 2013 00:01, the promo has ended.
He can set his os time to 13 april 2013 23:59 and he will be able to use it again.

What I want is, if it possible to block that method to bypass it.
Like no matter what, he won't be able to use it after promo...

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Apr 07, 2013 3:32 pm    Post subject: Reply with quote

@Mother of hack, if trainer works without Internet connection the answer is: nope.


All "trial applications" can be bypassed, by removing: files, registry entries, etc.

_________________
Back to top
View user's profile Send private message MSN Messenger
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Sun Apr 07, 2013 3:42 pm    Post subject: Reply with quote

@mgr.inz.Player
Is it possible to use internet connection for it?
And yes all trial applications can be bypassed, but people won't spend lots of time to bypass it;).

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Sun Apr 07, 2013 4:05 pm    Post subject: Reply with quote

@Mother of hack, i don't think it's a good idea to make a "Trial-based promo trainer" via time detection, as Mohsen mentioned, it's useless.

and yes, it's too easy to bypass by just changing the date of your system.

If you want to make a promo trainer, most of those types of trainers are on the internet, giving one cheat only for testing, while the others are 'if you want them, buy the full version trainer', when somebody buys it, you give him the complete cheat trainer(so you make another trainer containing the full cheats, so no worries about getting the promo file cracked).

If you still want to make the promo trainer expire for non-advanced users, you can try packing it with cryptor (Armadillo, ASProtect, VMProtect,.....etc).


Last edited by TsTg on Sun Apr 07, 2013 4:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Apr 07, 2013 4:11 pm    Post subject: Reply with quote

Ok, here we go (it's easy protection).

Fact 1
All CE trainers are extracted to Temp folder (X:\temp\cetrainers)

Fact 2
If generic CE6.2 trainer works, you have full access to Temp folder
X:\temp\Cheat Engine

Fact 3
You can create your own folder inside:
X:\temp\Cheat Engine

inside this folder, there are already many temporary folders...





Steps.
1. check if Temp folder have your "trial" file. If not exists go to step 2, otherwise step 4

2. check current time os.time(), convert it to integer, you can encrypt it if you want
3. create file ( io.open , write, ), skip step 4

4. read file, calculate diff time, if bigger than 10 days -> expired


You can add more options, like detecting date changing - your trial file contains both informations "start date" and "days remains". If "current date" - "start date" is different than "days remains", user probably changed date.





TsTg wrote:
If you still want to make the promo trainer expire for non-advanced users, you can try packing it with cryptor (Armadillo, ASProtect, VMProtect,.....etc).

CE6.2 already is flagged by many anti...... as malware Razz

_________________


Last edited by mgr.inz.Player on Sun Apr 07, 2013 5:25 pm; edited 3 times in total
Back to top
View user's profile Send private message MSN Messenger
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Sun Apr 07, 2013 4:15 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
Ok, here we go (it's easy protection).

Fact 1
All CE trainers are extracted to Temp folder (X:\temp\Cheat Engine)

Fact 2
If generic CE6.2 trainer works, you have full access to Temp folder

Fact 3
You can create your own folder inside:
X:\temp\Cheat Engine

inside this folder, there are already many temporary folders...


and to reset,....just delete the whole folder,..Very Happy


mgr.inz.Player wrote:
CE6.2 already is flagged by many anti...... as malware Razz


yeah Razz


Last edited by TsTg on Sun Apr 07, 2013 4:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Apr 07, 2013 4:18 pm    Post subject: Reply with quote

@TsTg, but which one Razz
If someone uses, for example, "aobscan" LUA command...
there are many many temporary folders inside X:\temp\Cheat Engine


+ "Mother of hack" wrote:
"And yes all trial applications can be bypassed, but people won't spend lots of time to bypass it"


+ I wrote:
"it's easy protection"

_________________
Back to top
View user's profile Send private message MSN Messenger
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sun Apr 07, 2013 4:21 pm    Post subject: Reply with quote

It's borderline off-topic, but did you consider free trainers with advertisement? There is a built in function for that after all: supportCheatEngine(...) which actually displays YOUR ads.

I myself am wondering if I should use that. I don't quite know how people will react...

@mgr.inz.Player:
mgr.inz.Player wrote:
but which one
The whole %temp% folder, then relaunch the .exe you downloaded.
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Sun Apr 07, 2013 4:27 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
@TsTg, but which one Razz
If someone uses, for example, "aobscan" LUA command...
there are many many temporary folders inside X:\temp\Cheat Engine


+ "Mother of hack" wrote:
"And yes all trial applications can be bypassed, but people won't spend lots of time to bypass it"


+ I wrote:
"it's easy protection"


I mean the "Temp" folder, correct me if it's not possible(i have never used lua, just auto assembler scripts), and i write my trainer in stand alone EXEs.

and yes i understand that's easy protection to get over it.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sun Apr 07, 2013 4:30 pm    Post subject: Reply with quote

TsTg wrote:
I mean [deleting] the "Temp" folder, correct me if it's not possible
You can use lua to run windows shell commands, so yes, you can delete a folder with a lua script.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Apr 07, 2013 4:43 pm    Post subject: Reply with quote

You can always create mixed protection:
+ file inside temp folder
+ file inside temp\cetrainer folder
+ file inside "temp\cheat engine" folder
+ registry entries


For registry entries you probably will need modified cheatengine-i386.exe and/or cheatengine-x86_64.exe which will have new registered Lua functions.


File names, and registry key names will be generated. So for example for windows7 it will be different, for winxp it will be different.





Anyway, any user with little effort
- can extract your EXE file (created with CE6.2) - download lazarus, download CE source, compile it, run in debug mode, set breakpoint, .... that person will get protected (simple xor) CET_TRAINER.CETRAINER file, ....,

- decrypt cetrainer - another lazarus/breakpoint trick....
or changed CE source, so it will save as unprotected CT file just after opening protected file


Conclusion:
CheatEngine is not designed for making trial/promo trainers.

_________________


Last edited by mgr.inz.Player on Sun Apr 07, 2013 5:30 pm; edited 4 times in total
Back to top
View user's profile Send private message MSN Messenger
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Sun Apr 07, 2013 4:53 pm    Post subject: Reply with quote

mgr.inz.Player wrote:

Conclusion:
CheatEngine is not designed for making trial/promo trainers.



Exactly Smile
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 All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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