Limiting number of times a software executes

By deepesh
Mar 18, 2015
Post New Reply
  1. I want some of my important software to execute only 10 or 15 times if they are in pen drive, so no one can use it much more....even if he copies the app to some other place the software should not run........
  2. ComputerGuy55

    ComputerGuy55 TS Maniac Posts: 376   +8

    The only way I could see that working properly would be to have it require authentication to a server. When it authenticates it counts 1 tick towards the counter. At 15 authentications it would indicate that it's been ran too many times and to re-authenticate/create a new key. Something similar to how PKI works.
  3. jobeard

    jobeard TS Ambassador Posts: 12,068   +1,340

    All solutions require a modification to the existing application.

    If you can modify the source, another approach is to give xx days after the first execution.
    1. fist time, find encoded timestamp file, not found -> immediately die(), else if date == original date, set new date
    2. verify date encoded <= today -> run, else die();
    no server required, just your ability to encrypt and decrypt a date

Similar Topics

Add your comment to this article

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...