This project was made to reproduce how students can cheat in logtime in 42 schools to help the staff prevent students from using this way to accumulate logtime without them being present and using their sessions. The project uses React.js
and Electron
framework to replicate the lock screen of MacOS Catalina. The UI is not 100% responsive with all screens since it was created specifically for the school iMacs (Retina 5K, 27-inch, 2020).
Caution
This script was made just for demonstration. Using this script in the school machines will result in suspending your scholarship for 3~4 months or permanently.
Since the school already had defenses from other ways to prevent students from cheating in logtime such as using caffeinate
, black screen, and so on. I needed to find a way that can't be detected. The solution is to use something that can control the OS itself, but act like a website(?) running in a browser. The solution is to combine both React.js and Electron.
React.js
: I used this framework since it's easy and straightforward to make UIs and handle states correctly instead of using vanilla JS, HTML, and CSS.Electron
: Since we need to control the OS, we can use this framework since it allows us to override actions such asCtrl + C
,⌘ + tab
,Ctrl + arrows
, and so on. Using Electron inkiosk
mode will help making the app unable to exit, or even lock the iMac lock screen.
Screen.Recording.2024-07-11.at.12.12.11.AM.mov
After the script runs, it can never be exited. I used a shortcut (I assigned in the code) to kill the app at the end of the video to exit.
Once again, This script was made just for demonstration ONLY. I'm not responsible if you get suspended or something.