Create Your Own Rubber Ducky !!!

Pratik Patel

Pratik Patel

Nov 18, 2022

2 Min

TABLE OF CONTENTS

  1. Introduction
  2. What you’ll need
  3. Installing Digispark Drivers
  4. Setting up Arduino IDE for ATtiny85
  5. Programming ATtiny85 for Rubber Ducky USB
  6. Payloads

Introduction

The USB Rubber Ducky is mostly famous for its appearances in movies and web series where the attacker uses a pen-drive like device to hack into an environment to fetch their data or hack their systems.

The purpose of Rubber Ducky is to simply run the script that we/attacker have programmed it for. It usually looks like a USB flash drive and acts like a keyboard when injected into the victim’s system.

So, let’s get started.

What you’ll need

  • Digispark ATtiny85 based mini development board
  • Digispark Drivers
  • Arduino IDE
  • USB connector

Installing Digispark Drivers

First of all we need to install the Digispark Drivers to work with the Digispark ATtiny85 based mini development board.

If you don’t have them, you can download it by clicking the link Digispark Drivers. Then, extract the zip file and install the drivers by running “DPinst64.exe” application.

Once the drivers are successfully installed, plug in your ATtiny85 board to the laptop.

Now, go to Device Manager and your device will be listed under “libusb-win32 devices” as “Digispark Boot-loader”. If you can’t find ‘libusb-win32 devices’ on the device manager, then go to View and click on ‘Show Hidden Devices.’

Setting up Arduino IDE for ATtiny85

Step 1: First of all download the Arduino IDE from the link, and install the software like any other software you install on windows.

Step 2: To program the ATtiny85 Board with Arduino IDE, first, we need to add the Digispark board Support to Arduino IDE.

To do that, go to File → Preferences and add the link below in the Additional Boards Manager URLs and click ‘OK.’

http://digistump.com/package_digistump_index.json

Step 3: After that, go to Tools → Board → Board Manager and search for ‘Digistump AVR’ and install the latest version.

Step 4: After installing it, you will be able to see a new entry in the Board menu titled ‘Digispark (Default – 16.5mhz)’.

Programming ATtiny85 for Rubber Ducky USB

Step 1: Once those steps are complete, create a new sketch and add the below script in the IDE before saving it.

Step 2: Click Sketch  Upload or click upload button on the top left

Step 3: The sketch will be verified/compiled, then the Arduino IDE will prompt you to plug in the Digispark USB within 60 seconds.

Your Rubber Ducky is Ready to Use!

Pratik Patel
Pratik PatelSecurity Consultant
linkedin

Pratik Patel, 4 years in Offensive Cyber Security at Certbar. CEH certified, excelling in Network VAPT and Web/Android Application VAPT, ensuring robust cybersecurity.

Share

Share to Microsoft Teams
Copyright © 2019 - 2024 Certbar Security Pvt. Ltd. All rights reserved.