| View previous topic :: View next topic |
| Author |
Message |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Sun Apr 07, 2013 7:46 am Post subject: os.time |
|
|
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 |
|
 |
Mohsen Advanced Cheater
Reputation: 1
Joined: 04 Apr 2013 Posts: 69 Location: PE
|
Posted: Sun Apr 07, 2013 8:16 am Post subject: |
|
|
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 |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Sun Apr 07, 2013 2:06 pm Post subject: Re: os.time |
|
|
@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 |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Apr 07, 2013 3:32 pm Post subject: |
|
|
@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 |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Sun Apr 07, 2013 3:42 pm Post subject: |
|
|
@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 |
|
 |
TsTg Master Cheater
Reputation: 5
Joined: 12 Dec 2012 Posts: 340 Location: Somewhere....
|
Posted: Sun Apr 07, 2013 4:05 pm Post subject: |
|
|
@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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Apr 07, 2013 4:11 pm Post subject: |
|
|
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
_________________
Last edited by mgr.inz.Player on Sun Apr 07, 2013 5:25 pm; edited 3 times in total |
|
| Back to top |
|
 |
TsTg Master Cheater
Reputation: 5
Joined: 12 Dec 2012 Posts: 340 Location: Somewhere....
|
Posted: Sun Apr 07, 2013 4:15 pm Post subject: |
|
|
| 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,..
| mgr.inz.Player wrote: | CE6.2 already is flagged by many anti...... as malware  |
yeah
Last edited by TsTg on Sun Apr 07, 2013 4:23 pm; edited 1 time in total |
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Apr 07, 2013 4:18 pm Post subject: |
|
|
@TsTg, but which one
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 |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Sun Apr 07, 2013 4:21 pm Post subject: |
|
|
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 |
|
 |
TsTg Master Cheater
Reputation: 5
Joined: 12 Dec 2012 Posts: 340 Location: Somewhere....
|
Posted: Sun Apr 07, 2013 4:27 pm Post subject: |
|
|
| mgr.inz.Player wrote: | @TsTg, but which one
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 |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Sun Apr 07, 2013 4:30 pm Post subject: |
|
|
| 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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Apr 07, 2013 4:43 pm Post subject: |
|
|
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 |
|
 |
TsTg Master Cheater
Reputation: 5
Joined: 12 Dec 2012 Posts: 340 Location: Somewhere....
|
Posted: Sun Apr 07, 2013 4:53 pm Post subject: |
|
|
| mgr.inz.Player wrote: |
Conclusion:
CheatEngine is not designed for making trial/promo trainers. |
Exactly
|
|
| Back to top |
|
 |
|