Jump to content

DuckyScript to Arduino Uno R2


marcusorwen

Recommended Posts

A bit of back story as to why I started this project.

I'm a student in Sweden and I'm still learning Java, and I love the work that have been done to the USB Rubber Ducky, but cannot afford to buy one as of yet :(
So I thought why not use my old Arduino Uno R2 to do the work.
But soon I realized the Arduino Uno R2 did not support USB-HID with its Atmega8U2 chip that converted the usb into serial, so I was bummed down for a while.

But just recently I started to research more about Arduino Uno R2 and its Atmega8U2.

I found a very useful blog post (link) about someone that had created a .hex file that could be flashed in DFU-mode to Arduino's Atmega8U2 chip to enable HID support, the only downside to this was that it removed the ability to upload Arduino code to the Arduino itself so you have to go back and forth from the normal state of the Atmega8U2 and the keyboard state.

When I finally got everything working and I could send key presses through the Serial.write function I started working on a converter that would convert DuckyScript to the Arduino so I could get a semi working USB Rubber Ducky.
It took me a weekend and i was happy with the first conversion program.
As of today I have improved on it a bit but there is still a lot of work left to do.

But I think it is ready to be used for some simple DuckScripts.

I would really love to hear what everyone thinks about this and how it can be improved.


Features

  • Allow you to convert most DuckyScript to the Arduino
  • Only supports Swedish as keyboard language (multi language support is planned).
  • Can handle pretty large DuckScripts (The base script is ~5.3KB)
  • Can input key presses at a pretty fast speed (depending on the actual computer it might miss a keystroke since its using Serial functions).
  • OpenSource!


Source code

https://github.com/thesymbol/DuckyScriptToArduino/tree/ba1d485dae6ccb5add5cf7c76d2ea75184fc2c67

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...