Jump to content

GUI Command Not Working


Go to solution Solved by no42,

Recommended Posts

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.

Link to post
Share on other sites

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 by midnitesnake
Link to post
Share on other sites

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.

Link to post
Share on other sites
  • Solution

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 by midnitesnake
Link to post
Share on other sites

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)

Link to post
Share on other sites
  • 2 months later...

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...