How to set a Linux Ditribution to self-destruct (to wipe everything from the system partition) via a script

I will be aiding to promote a training course that makes use of qualified software program. The software program is rather pricey and also permits just a minimal variety of simultaneous installments, so what I'll do is to install one instance on an encrypted Virtual Disk with Ubuntu (or a few other taste of linux) mounted. Simply to decrease the opportunity of any kind of unneeded pirating from taking place, I plan to timetable (making use of cron) a self - destruct script to run quickly after the last day of the training course. (Or at the most up to date, throughout the first instance of start up after the last day.)

As high as I enjoy free software and also open - resource tasks (and also group sourcing as a whole), I additionally have a healthy and balanced regard for business software program and also the moment and also initiative that the programmers have actually taken into thinking of an excellent item - I do not intend to wind up accidentally adding to the piracy of their blood, sweat, and also rips.

Would certainly value any kind of suggestion on just how to implement this self destruct script on a Linux equipment.

12
2022-06-07 15:16:04
Source Share
Answers: 3

I do not recognize what your arrangement is, yet if you can need your customers to be on - line, after that you could intend to take a various method - shot filling the software program over a network link whenever they run it. This is just sensible, and also it relies on you having the ability to release some sort of id to the specific customers. You would certainly have a stub on the VM, and also the stub would certainly vehicle - place a remote server and also run the binary from there. Absolutely nothing that they could not navigate with a little job, yet it would certainly at the very least be tougher than navigating the vehicle - destruct.

At the same time, you can have the remote server react with keys, and also maintain an encrypted variation of the program on disk - the stub quizs the server for the keys, decrypts and also runs the program, removing the decrypted binary as ideal. This would certainly additionally be tougher to navigate, yet once more calls for one-of-a-kind customer ids (which might not be feasible for you).

0
2022-06-07 15:54:10
Source

As stated numerous times, removing the encrypted photo needs to be ample. An additional strategy would certainly be to install the application by itself dividing and also clean it after that with dd.

dd if=/dev/zero of=/dev/TARGETPARTITION bs=1M

This will certainly overwrite every little thing with absolutely no which suffices to delete the information past recuperation.

3
2022-06-07 15:47:42
Source

To destroy every little thing appears to be a little excessive, just how ready to simply remove/unstall your program.

rm -rf /path/to/your/program/ 

Or just how concerning you implement a regular licensing web server that the program must speak to prior to it can start?


Update :. As a open inquiry, do you intend to destroy the customers information along with your program? Or are the customers information saved in other places?

And also possibly the customer needs to get some sort of nagware notification that you intend destroy every little thing! Something like

- "This software program will certainly self destruct if you do not pay even more cash, you have X days left."

As a customer I would certainly be actually dismayed if you simply damaged something in my computer system without also informing me that this will take place (so I at the very least obtained some opportunity of influencing the end result).

It is sort of negative for your firm if all your paying customers would certainly wind up despising you.

6
2022-06-07 15:45:22
Source