# DigiSpark Scripts | USB Rubber Ducky Scripts Written for DigiSpark

**URL:** <https://onehack.st/t/digispark-scripts-usb-rubber-ducky-scripts-written-for-digispark/200028>\
**Category:** Tools & Scripts\
**Tags:** tools\
**Created:** [September 2, 2021, 12:03pm UTC](https://onehack.st/t/digispark-scripts-usb-rubber-ducky-scripts-written-for-digispark/200028 "2021-09-02T12:03:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueHacker](https://onehack.st/user_avatar/onehack.st/bluehacker/32/174721_2.png) [@BlueHacker](https://onehack.st/u/BlueHacker)\
**Post date:** [September 2, 2021, 12:03pm UTC](https://onehack.st/t/digispark-scripts-usb-rubber-ducky-scripts-written-for-digispark/200028/1 "2021-09-02T12:03:11Z")

</div>

[![Wallpaper Prank](https://camo.githubusercontent.com/8405d6ed03a4982d8749051e180f56913d94be83f0313ba40d09af22d99a88cb/68747470733a2f2f6a2e676966732e636f6d2f3332723745522e676966)](https://www.youtube.com/watch?v=yHPRZnpxvks)

# DigiSpark-Scripts

This is a set of hand-written DigiSpark sketches for the Arduino IDE that utilize the DigiKeyboard.h library making the DigiSpark to act as a keyboard and execute a variety of actions. If you have found a USB Rubber Ducky scipt that you want to convert to a DigiSpark sketch, you can always use digiQuack, a tool which can be found in my repositories.

# Instructions

Configure the Arduino IDE for the DigiSpark using: [https://digistump.com/wiki/digispark/tutorials/connecting](https://digistump.com/wiki/digispark/tutorials/connecting) or Seytonic’s tutorial: [https://youtu.be/fGmGBa-4cYQ](https://youtu.be/fGmGBa-4cYQ). Then download one of scripts (sketches), open them with Arduino IDE, modify them if needed and upload them to the DigiSpark.

# Script Descriptions

- **Create\_Account** : Creates a new admin account and optionally hides it
- **DNS Poisoner** : Injects lines into the Windows hosts file and redirects URLs to wherever you want
- **Execute\_Powershell\_Script** : Downloads and executes a powershell script in hidden mode
- **Fork\_Bomb** : Opens up an obfuscated windows terminal and makes it multiply itself uncontrolably causing the machine to either lock or crash
- **Rapid\_Shell** : Seamlessly executes metasploit payloads through powershell
- **Reverse\_Shell** : Opens a netcat reverse shell from a Windows machine to the host
- **RickRoll\_Update** : Plays Never Gonna Give you up while performing a fake windows update
- **Silly\_Mouse** : Switches primary and secondary mouse buttons, display mouse trails, decreases mouse speed and other mouse related pranks
- **Talker** : Makes the computer speak out a message using powershell
- **Wallpaper\_Changer** : Downloads and applies a wallpaper via powershell.
- **Wallpaper\_Changer\_macOS** : Downloads and applies a wallpaper via applescript on macOS.
- **Wallpaper\_Prank** : Takes a screenshot of the desktop, sets it as the wallpaper, hides desktop icons
- **WiFi\_Profile\_Grabber** : Extracts wifi profiles and saves the csv to a USB drive
- **WiFi\_Profile\_Mailer** : Writes the wireless network credentials to a csv file and emails it
- **Window\_Jammer** : Spams ALT + F4 and CTRL + W key combos to force close all active windows

# See the scripts in action

Click the gifs to see the full video

[![Wifi Stealer](https://camo.githubusercontent.com/1f2a30e03d08aa6241024674ad4efbb927018f5af11a1a5f832edbcb94cbf273/68747470733a2f2f6a2e676966732e636f6d2f4e394b5035762e676966)](https://www.youtube.com/watch?v=b5E0u4qNH4s)

[![Wallpaper Prank](https://camo.githubusercontent.com/8405d6ed03a4982d8749051e180f56913d94be83f0313ba40d09af22d99a88cb/68747470733a2f2f6a2e676966732e636f6d2f3332723745522e676966)](https://www.youtube.com/watch?v=yHPRZnpxvks)

# Contributors

- **samratashok**
- **NassimBentarka**
- **p0wc0w**
- **apsecdev**
- **BlackBoot**
- **Michyus**
- **Vel1khaN**
- **slipperyavocado**
- **bernsteining**

# Resources

- USB Rubber Ducky Documentation by hak5darren: [https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Duckyscript](https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Duckyscript)
- Digistump DigiSpark Documentation: [https://github.com/digistump/DigisparkArduinoIntegration/blob/master/libraries/DigisparkKeyboard/DigiKeyboard.h](https://github.com/digistump/DigisparkArduinoIntegration/blob/master/libraries/DigisparkKeyboard/DigiKeyboard.h)
- USB Usage IDs by [usb.org](http://usb.org) (page 53): [http://www.usb.org/developers/hidpage/Hut1\_12v2.pdf](http://www.usb.org/developers/hidpage/Hut1_12v2.pdf)

## GitHub:

> **[GitHub - CedArctic/DigiSpark-Scripts: USB Rubber Ducky type scripts written for the...](https://github.com/CedArctic/DigiSpark-Scripts)**
>
> USB Rubber Ducky type scripts written for the DigiSpark.
