Creation of a compact prank device based on the Digispark ATtiny85 microcontroller. This little gadget can be programmed to perform various actions. In this article, we’ll look at how to configure the Digispark ATtiny85 to hack your computer using simple scripts.
The Digispark ATtiny85 is a compact ATtiny85 microcontroller-based board that has only a few pins, but is functional enough to implement interesting projects. It supports USB, which allows you to use it as an input device, such as a keyboard or mouse. This makes it a great tool for pranks.
Before you start working with the Digispark ATtiny85, you need to set up the Arduino IDE development environment:
Download and install the Arduino IDE.
Add Digispark ATtiny85 support. To do this, go to File > Preferences, and in the Additional Board Manager URLs field, add the following URL: http://digistump.com/package_digistump_index.json.
Go to Tools > Board > Boards Manager, search for Digispark (by Digistump) and install it.
After the development environment is configured, you can proceed to writing the code. Here’s an example of a simple sketch that starts typing random characters after connecting to a computer:
#include "DigiKeyboard.h" void setup() { DigiKeyboard.sendKeyStroke(0); } void loop() { // We wait 5 seconds before starting the prank DigiKeyboard.delay(5000); // Random character input every 2 seconds DigiKeyboard.print("Mommy hackers are driving!"); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.delay(2000); }
This code performs a simple prank: it enters the text “Mom’s hackers drive!” and press Enter every 2 seconds.
After writing the code, connect the Digispark to the USB port of the computer. Click the check sketch button and then upload the code.
Now you can connect the Digispark ATtiny85 to the “victim” computer and enjoy the reaction when the unexpected messages start entering.
Digispark ATtiny85 is an affordable and convenient tool for implementing technical pranks. Thanks to its compact size and ability to emulate USB devices, it opens up wide possibilities for creative use on the victim’s computer. Its compactness allows you to easily create a case or use a ready-made flash drive, turning the device into a BadUSB.
Disclaimer. This article is created for informational purposes only. All advice and instructions are provided for educational purposes and we are not responsible for any possible consequences related to the implementation of this project. Always use safety precautions when working with electronic components.