Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit Access to executable by date 1

Status
Not open for further replies.

buteaujd

Programmer
Mar 20, 2008
2
US
I have a Fortran executable (Linux & Windows) that I would like
to make available to other people for a limited time. ie the code should
not be executable after June 1st 2008. I would also like a "hook" so I could disable the date check. The logic should be reasonable secure
 
You probably need some kind of licence code file. Can be encrypted to anything you want.
 
If you don't need it very secure, you could just use the DATE or DATE_AND_TIME intrinsics to grab the date. Then parse it into an integer. From there, just have your program inside one giant IF loop. Compile and enjoy.
 
I have used DATE_AND_TIME to limit execution by date but what if a evil user changes the clock. (Easy to do especially on Windows)
 
Lots of silly ways around this.

Pick a commonly misspelt word like receive or dependent. On installation, create a file called receive.txt or dependent.txt. If the date is valid, check for receive.txt or dependent.txt. When expired, rename receive.txt to recieve.txt or dependent.txt to dependant.txt.

Some will spot it, some won't. Worth a gamble. They will just assume that, like many software developers, you can't spell properly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top