zieren / wasted-youth-tracker

Limit kids' time on their (Windows) PC and get a summary of the window titles.
GNU General Public License v3.0
5 stars 0 forks source link

Prevent low skill exploits #96

Open zieren opened 2 years ago

zieren commented 2 years ago

There is at least one low skill exploit:

  1. Open a tab X for which the limit is zero
  2. When the alert is shown (or rather, a few seconds later, within the grace period), switch to a tab Y for which the limit isn't zero. Maybe even press ^F12 now to pick this up immediately, or else wait for the warning window to disappear (which it now conveniently does).
  3. Switch batch to tab X.

This could be addressed in several ways:

First simple step is to ensure that a grace period of 0 works. We need to document parameters and ranges anyway.

zieren commented 2 years ago

Another idea: If time elapses repeatedly for a class (say, 3x in 10 samples), blacklist it and kill the PID immediately.