DeltaGene Posted July 16, 2014 Share Posted July 16, 2014 Hello, I just ordered and received my first Rubber Ducky in the mail. Let me just say that I think it's an incredible piece of equipment. I do however have one problem. I wrote my first Payload in TextEdit, correctly encoded it (via Terminal) onto the MicroSD, and then loaded it into the Rubber Ducky. When I insert the Rubber Ducky into my USB slot, the commands are being carried out; but the GUI command is not cooperating with my Mac OSX. Here is my code: REM Rubber Ducky Payload: Hello World REM Creates a new TextEdit file on the computer, and then types “Hello World!!!” DELAY 1000 GUI SPACE DELAY 500 STRING textedit DELAY 500 ENTER DELAY 500 GUI N DELAY 500 STRING Hello World!!! ENTER GUI SPACE is intended to execute COMMAND SPACE on my Mac OSX. The rest of the code just does random stuff with finder because the first command didn't work. To fix this problem I think I need to update the Firmware? To update the firmware I believe I need to flash the Ducky... But I haven't been able to do this using dfu-programmer-0.5.4 I have follow this tutorial: https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Flashing-ducky According to the README file on dfu-programming-0.5.4 I am supposed to "./configure", "make", and "make install" before I can flash the Ducky(From my understanding). I am able to configure the file, but when I type "make" / "make install" I get the error message "Fatal Error: usb.h not found". I have tried everything to get around this. If someone could please help me update the Firmware on my Rubber Ducky, or tell me what I am doing wrong I would greatly appreciate it. Quote Link to comment Share on other sites More sharing options...
DeltaGene Posted July 17, 2014 Author Share Posted July 17, 2014 If anyone has any information on this at all it would be greatly appreciated. I realize this project was more popular a couple years ago, I hope this thread isn't dead Quote Link to comment Share on other sites More sharing options...
no42 Posted July 17, 2014 Share Posted July 17, 2014 (edited) I am able to configure the file, but when I type "make" / "make install" I get the error message "Fatal Error: usb.h not found". You haven't got libusb-devel installed use mac ports or brew to install the package. Then follow the instructions here: https://code.google.com/p/ducky-decode/wiki/Flashing_Guide Which Encoder version are you using, GUI SPACE appears to working fine for me? Edited July 17, 2014 by midnitesnake Quote Link to comment Share on other sites More sharing options...
DeltaGene Posted July 19, 2014 Author Share Posted July 19, 2014 You haven't got libusb-devel installed use mac ports or brew to install the package. Then follow the instructions here: https://code.google.com/p/ducky-decode/wiki/Flashing_Guide Which Encoder version are you using, GUI SPACE appears to working fine for me? Thanks for the response midnitesnake. So, to flash the Ducky on a mac I need to install Macports, and then use Macports to install libusb-devel, and then install dfu-programmer, and then follow the instructions on the wiki? The wiki said nothing about that, I am confused? Also, I am using Duckencode.jar Version 1.2 found here: https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Downloads#version-12 When I cross-referenced my results with other Mac users results on the Payloads forums on GitHub I realized that not everyone was having this error. Is that because everyone else has flashed their ducky to upgrade the Firmware? When I flash the ducky, will it upgrade it to new firmware or just restore the firmware that the device had when I received it? I don't think I need to flash to fix anything, I just assumed that because the GUI command isn't working for me that the firmware must be out of date. Quote Link to comment Share on other sites More sharing options...
Solution no42 Posted July 19, 2014 Solution Share Posted July 19, 2014 (edited) Ah ha, for GUI/COMMAND SPACE you need a newer encoder v2.6.3 https://drive.google.com/#folders/0B7uVAbdkMKcXNWRGbjB3SGpsWnc or https://code.google.com/p/ducky-decode/downloads/list as for install libusb-devel, you can use either brew or macports, I personally use macports (so can't help you with brew, but understand its just as easy to use). The wiki doesn't mention this to avoid confusion between mac ports and brew. The newer firmware just has more / different features; the encoder is responsible for mapping all the keyboard keys, and keys across languages etc. your firmware is probably basic but all you need. Edited July 19, 2014 by midnitesnake Quote Link to comment Share on other sites More sharing options...
DeltaGene Posted July 19, 2014 Author Share Posted July 19, 2014 Thanks midnitesnake! I appreciate you explaining everything instead of just telling me how to fix it. Do you know what the new / different features of the updated firmware are? Quote Link to comment Share on other sites More sharing options...
no42 Posted July 20, 2014 Share Posted July 20, 2014 More details are here: http://code.google.c.../ducky-decode/ examples: 1x turns ducky into a Mass storage device 1x changes the auto trigger to the black button 1x changes the trigger to the caps lock, num lock, scroll lock keys 1x changes the ducky into a composite device, both the HID injector and Mass Storage Quote Link to comment Share on other sites More sharing options...
DeltaGene Posted July 21, 2014 Author Share Posted July 21, 2014 Ahh I see, thanks again. I am having trouble getting the new encoder to work. I downloaded duck encoder_2_6_3.zip from the link you shared and unzipped the file. When I run the terminal commands the same way I used to, I am getting this error: Exception in thread "main" java.lang.UnsupportedClassVersionError: Encoder : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) I tried attaching -l resources/us.properties as well as just pasting -l (copiedfilelinkhere) and no matter what I do I am still getting the above error message. Any ideas? I am running the latest version of OSX (10.9.4) Quote Link to comment Share on other sites More sharing options...
no42 Posted July 21, 2014 Share Posted July 21, 2014 Its precompiled with Java 1.7 https://code.google.com/p/ducky-decode/wiki/Encoder_Howto either install java 1.7 (all info is in the link above for OSX), or recompile the program with Java 1.6 Quote Link to comment Share on other sites More sharing options...
RicRojo Posted October 12, 2014 Share Posted October 12, 2014 try CONTROL ESCAPE insted of GUI to open the windows menu. for example to run cmd as administrator in w7 DELAY 1000 CONTROL ESCAPE DELAY 1000 STRING cmd DELAY 500 MENU DELAY 500 DOWN DELAY 500 DOWN DELAY 500 ENTER DELAY 500 LEFT DELAY 500 ENTER Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.