The Digispark Unlock Project showcases how the Digispark ATtiny85 microcontroller can be used to automate PIN brute-forcing on a mobile deviceβs lock screen. This project is purely for educational purposes to understand the interaction between hardware and digital systems.
β
Brute-Force PIN Combination: Attempts PINs from 0000
to 9999
automatically.
β
Configurable Delays: Adjust delay timings to avoid security lockouts.
β
Compact & Efficient: Uses low-power Digispark ATtiny85 microcontroller.
β
Easy Programming: Arduino-compatible with DigiKeyboard Library.
β
USB-Based Execution: No need for additional hardware.
- Microcontroller: Digispark ATtiny85
- Connections:
- Micro USB Cable β For programming and power supply
- Target Mobile Device β For testing PIN brute-force automation
- Arduino IDE (for writing and uploading the script)
- DigiKeyboard Library (to simulate keyboard inputs)
- Download and install Arduino IDE from Arduino Official Site.
- Add Digistump Board Support in Arduino IDE:
- Go to File > Preferences.
- Add this URL in Additional Board Manager URLs:
http://digistump.com/package_digistump_index.json
. - Open Boards Manager, search for Digistump AVR Boards, and install it.
- Open Arduino IDE.
- Go to Sketch > Include Library > Manage Libraries.
- Search for
DigiKeyboard
and install it.
- Connect your Digispark ATtiny85 via USB.
- Open Arduino IDE and paste the following code:
#include "DigiKeyboard.h"
void setup() {}
void loop() {
for (int pin = 0; pin <= 9999; pin++) {
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.print(String(pin));
DigiKeyboard.sendKeyStroke(KEY_ENTER);
delay(5000); // Adjust delay to avoid security lockout
}
}
- Click Upload (The Digispark must be disconnected before compilation and reconnected when prompted).
- The Digispark ATtiny85 acts as a USB keyboard.
- It simulates keypresses, entering PIN numbers sequentially (
0000
to9999
). - A 5-second delay is added to prevent security lockouts.
- The process continues until the correct PIN is found.
- π¨ Use this tool responsibly on your own devices.
- π Unauthorized use is illegal in many countries.
- π Intended for learning about cybersecurity and hardware automation.
This project is licensed under the MIT License. You are free to modify and distribute it for educational purposes only.