I'm going to publish a library which guarded by anti-debug ,(ptrace_trackme for Linux and isDebuggerPresent for windows). The down side of this library is: users would be abled to debug their own programs while the program is linked to my guarded library.
What anti-debug techniques should be adopted ?Provided that the users are able to debug their programs and my library is not comprised.
By the way, my friend has a proprietary software which licensed through a software license, (anti-debug of course). If he wants to debug his program while using the software, He has to buy an extra dongle and replace the lib with the version which coupled with the dongle.
Thanks!