Using the Digispark ATtiny85 to hack a computer

14 August 2024 3 minutes Author: Cyber Witcher

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.

What is the Digispark ATtiny85?

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.

What can you do with a Digispark ATtiny85?

One of the most common uses for the Digispark ATtiny85 is as a keyboard emulation that automatically enters commands, text, or runs programs on a computer. In addition, this controller can be used to gain access to the computer through Reverse Shell. This allows you to avoid purchasing an additional Rubber Ducky by using only this device.

How to implement a prank?

Step 1: Preparing the development environment

Before you start working with the Digispark ATtiny85, you need to set up the Arduino IDE development environment:

  1. Download and install the Arduino IDE.

  2. 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.

  3. Go to Tools > Board > Boards Manager, search for Digispark (by Digistump) and install it.

Step 2: Writing a prank sketch

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.

Step 3: Upload code to Digispark

After writing the code, connect the Digispark to the USB port of the computer. Click the check sketch button and then upload the code.

Step 4: Using a prank device

Now you can connect the Digispark ATtiny85 to the “victim” computer and enjoy the reaction when the unexpected messages start entering.

Conclusion

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.

Other related articles
Found an error?
If you find an error, take a screenshot and send it to the bot.