Corporate Hack — Always available on your MS Teams
This will help you to avoid locking your company system even if you are not working on it.
Prerequisites:
Download and install Java in your system.
Most of the company systems already have Java installed.
Check with below steps:
Search for ‘Command Prompt’ in Windows and ‘Terminal’ in Mac.
Run below command:
> java -version
Download SystemNolock.class file in your local folder.
Link : https://gitlab.com/nachiketrajput1998/mousemover-java-code/-/blob/main/SystemNolock.class
Run below command to execute the process.
> java SystemNolock
Code for reference.
import java.awt.Robot;import java.util.Random;class SystemNolock {public static final int TWENTY_SEC = 20000; //Time of delay, you can choose as per convenience.public static final int POSITION_Y = 100;public static final int POSITION_X = 100;public static void main(String... args) throws Exception {Robot robot = new Robot();Random random = new Random();while (true) {robot.mouseMove(random.nextInt(POSITION_X), random.nextInt(POSITION_Y));Thread.sleep(TWENTY_SEC);}}}
Save a code as a .java file and execute.
> javac SystemNolock.java
> java SystemNolock
Let the code execute till the point you are not available on your system but have to show available on any company communication platform (MS Teams).
Hope this will help you in completing your daily hours.
I’ll discuss more hacks in a future blog post!
Do like, follow and subscribe through email for upcoming posts.