Jump to content

DuckyScript not opening Run command Or Terminal - Ubuntu 16.04 Xenial


Recommended Posts

Hello, I just got my Rubber Ducky and started toying with it, but can't get the desired outcome on my Ubuntu Xenial machine.

System: Ubuntu 16.04 Xenial 4.4.0-70-generic

Compile Steps: Deleted inject.bin, ran java -jar /path/to/duckencode.jar -i hello.txt, created an inject.bin.
Script:

REM Description: Open "Run a Command", run gnome-terminal
DELAY 3000
ALT F2
DELAY 1500
STRING gnome-terminal
DELAY 750
STRING echo Hello World
ENTER

Outcome: The ALT F2 part of the script not working, the delays, the string inputs and enter keys are working.

Test: Opened gEdit, focused the window and replayed payload.

Output: 

gnome-terminal
echo Hello World

Expectation:  Gnome Terminal to open, focused, and write echo Hello World then return key.


Alternative: Tried CTRL ALT t, without STRING gnome-terminal ENTER and does not work either.

Alt Script:

REM Description: Open Terminal
DELAY 3000
CTRL ALT t
DELAY 1500
STRING echo Hello World
ENTER

Test: Opened gEdit, focused the window and replayed payload.
Output: echo Hello World

Expectation: Gnome Terminal to open, focused, and write echo Hello World then return key.

No Gnome Terminal opened, just did STRING echo Hello World ENTER in gEdit.
Is there something I am doing wrong? Is there something I should know?
Any help or suggestions would be appreciated.
I will be switching over to Windows tomorrow, but just thought this was odd and worth mentioning for Ubuntu 16.04.

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