First thank you to those who have helped bring me up to speed with the whole area of protection. I think I am allmost there
In writing my own version of protection I have come across one problem that is fundamental to all protection schemes - writing a file to the users hard drive.
If your protection method creates a file on the users hard drive and it is discovered and removed your protection is reset to the first time the app was run! Then the protection code writes a new file to the HD and starts all its counting and checking again!
All a user has to do is trash the file every time the trial period expires and he is done.
Is there a way to copy and modify the EXE itself to contain a number that can be checked by code in that EXE? that way the first time it is run, it could change something within itself, or append something and delete the original EXE thus providing a way to check and see if it really is the first time it is running on that machine.
I have tried without sucess to append a coded CRC to a file with:
OPEN TargetFile FOR BINARY ACCESS WRITE LOCK READ AS #100
PUT# 100, FileLength + 1, MyEncodedNumber
CLOSE# 100
Is there another way to append to a .exe?
Is there another method?
------------------
Kind Regards
Mike

In writing my own version of protection I have come across one problem that is fundamental to all protection schemes - writing a file to the users hard drive.
If your protection method creates a file on the users hard drive and it is discovered and removed your protection is reset to the first time the app was run! Then the protection code writes a new file to the HD and starts all its counting and checking again!
All a user has to do is trash the file every time the trial period expires and he is done.
Is there a way to copy and modify the EXE itself to contain a number that can be checked by code in that EXE? that way the first time it is run, it could change something within itself, or append something and delete the original EXE thus providing a way to check and see if it really is the first time it is running on that machine.
I have tried without sucess to append a coded CRC to a file with:
OPEN TargetFile FOR BINARY ACCESS WRITE LOCK READ AS #100
PUT# 100, FileLength + 1, MyEncodedNumber
CLOSE# 100
Is there another way to append to a .exe?
Is there another method?
------------------
Kind Regards
Mike
Comment