Click the Follow button to be sure you are receiving updates.

Thursday, June 30, 2022

Mouse jiggler, make yourself look busy on your PC.

Today we are going to show you how to build a mouse jiggler so that you can keep your PC active and make yourself look busy to others on Microsoft Teams, WebEx Teams, Skype, and many other live chat apps.

The first thing I have to explain is that is not very complicated and requires no soldering. It will however require some Arduino code, but you can just cut and paste my code at the bottom.

First of you well need this little item. It is called Lily Go Leonardo, and it has a micro pc built in. I will now explain how a PC is crammed into this keychain USB.


It uses a standard micro pc chip based on the Arduino Leonardo system, and technically it is a computer on a chip. It is also referred to as a Keyboard, but that is probably because you can code it to type so many things, like a 246 character password that you can make it type out 3 seconds after you plug it in.

This might sound crazy, but you can basically lock down all your accounts and they will not be able to be hacked for quite a while. After all even a 128 character password would take 93 Trillion years for a hacker program to figure out. These are actual facts put forth by the Computer Security Foundation and Council. 

so basically I wrote a mouse jiggler program so that my pc will always stay awake no matter what I am doing. Mainly this is because when i am scanning in electronics and pc equipment into an excel document, sometimes I have to lay the Bluetooth scanner down and untangle a mess of wires. Sometimes this can take several minutes up to and past a half an hour. By that time the computer screen has already went into lock mode and I have to walk back over to the laptop and log back in.

Now this can b e a security issue in any other department, but since it is just me back in the warehouse jamming out to Ferry Corsten and the State of Trance, I will have no worries.


The mouse functions enable 32u4 micro based boards to control cursor movement on a connected computer through their micro boards native USB port. When updating the cursor position, it is always relative to the cursor’s previous location.

This loads the mouse library to let you use it.

#include <Mouse.h>

These core libraries allow the 32u4 and SAMD based boards (Leonardo, Esplora, Zero, Due and MKR Family) to appear as a native Mouse and/or Keyboard to a connected computer.



The next bit of code is as I stated in the code with the forward slash annotations, that it is to move the mouse pointer every 60 seconds. You can adjust your time, but just remember that 1 second equals 1000, which is milliseconds. So to have your mouse move once per minute it would have to be set at 60,000 milliseconds, or what we just call 60 seconds. So to have the mouse move once every 10 minutes, if your screen locks at the standard 12 to 15 minutes, you will need to set the milliseconds to 600,000 instead of 60,000. Of course since this is C+ you can not use commas in numerical values so 600,000 will be represented as 600000 and 60,000 as 60000 and 6,000 as 6000 and such.

//move every 60 seconds/every minute
int move_interval = 60000;

This is just the next step of instructions that is telling the mouse to begin.

void setup() {
  randomSeed(analogRead(0));
  Mouse.begin();
}

The next set of code is telling the mouse where to randomly move. In this context I am having the cursor moved .1 pixel on the screen in any direction so it is not noticeable to the human eye, but the computer will register it all the same.

void loop() {
  int x = random(-.1,.1);
  int y = random(-.1,.1);
  Mouse.move(x, y, 0);
  delay(move_interval);
}



The official link to purchase a Lily Go Programmable ATmega32U4 USB Stick


Source code: For the uninitiated, and those who want to skip the programming.
Click and drag and copy all the text that is colored Blue below. You can post this into your Arduino program as a new code and the select Run. It will begin to function immediately

#include <Mouse.h>

//move every 60 seconds/every minute
int move_interval = 60000;

void setup() {
  randomSeed(analogRead(0));
  Mouse.begin();
}

// Values of the mouse location are set to .1 so as to not be noticeable if someone observes your screen.
void loop() {
  int x = random(-.1,.1);
  int y = random(-.1,.1);
  Mouse.move(x, y, 0);
  delay(move_interval);
}


Enjoy your Malicious Compliance, of being told to always be available on Teams. :P
r/maliciouscompliance

No comments:

Post a Comment