Jump to content

just received usb rubber ducky and have my first errors


brazen

Recommended Posts

I am following

root@kali:/media# cd /media
root@kali:/media# ls
A87B-A154 cdrom cdrom0
root@kali:/media# cd A87B-A154/
root@kali:/media/A87B-A154# ls
encoder.jar helloworld.txt inject.bin
root@kali:/media/A87B-A154# java -jar encoder.jar
Hak5 Duck Encoder 2.6.3

Usage: duckencode -i [file ..] encode specified file
or: duckencode -i [file ..] -o [file ..] encode to specified file

Arguments:
-i [file ..] Input File
-o [file ..] Output File
-l [file ..] Keyboard Layout (us/fr/pt or a path to a properties file)

Script Commands:
ALT [key name] (ex: ALT F4, ALT SPACE)
CTRL | CONTROL [key name] (ex: CTRL ESC)
CTRL-ALT [key name] (ex: CTRL-ALT DEL)
CTRL-SHIFT [key name] (ex: CTRL-SHIFT ESC)
DEFAULT_DELAY | DEFAULTDELAY [Time in millisecond * 10] (change the delay between each command)
DELAY [Time in millisecond * 10] (used to overide temporary the default delay)
GUI | WINDOWS [key name] (ex: GUI r, GUI l)
REM [anything] (used to comment your code, no obligation :) )
ALT-SHIFT (swap language)
SHIFT [key name] (ex: SHIFT DEL)
STRING [any character of your layout]
REPEAT [Number] (Repeat last instruction N times)
[key name] (anything in the keyboard.properties)
root@kali:/media/A87B-A154# nano helloworld.txt

  GNU nano 2.2.6                           File: helloworld.txt                                                            



REM Author: me

REM descriptions hellow world

STRING hello world

ENTER



I do not have windows computers. I have all mac and my one mbp running kali.

i opened leafpad and put my sd card into rubber ducky, connected it to kali machine, i have the blinking green lights, but nothing is happening

root@kali:/media/A87B-A154# ls

encoder.jar  helloworld.txt  inject.bin

root@kali:/media/A87B-A154# leafpad helloworld.txt

root@kali:/media/A87B-A154# nautilus .

root@kali:/media/A87B-A154# ls

encoder.jar  helloworld.txt  inject.bin

root@kali:/media/A87B-A154# java -jar encoder.jar  -i helloworld.txt -o /media/A87B-A154/inject.bin

Hak5 Duck Encoder 2.6.3



Loading File .....        [ OK ]

Loading Keyboard File .....    [ OK ]

Loading Language File .....    [ OK ]

Loading DuckyScript .....    [ OK ]

DuckyScript Complete.....    [ OK ]



root@kali:/media/A87B-A154#



Edited by brazen
Link to comment
Share on other sites

what firmware are you using?

likely the ducky is firing really fast - your computer misses the first sequence, by pushing the button your replaying the sequence.

add an initial delay of 3000 or more eg

delay 3000
GUI R
delay 200
string notepad
enter
delay 200
STRING hello world
ENTER
Link to comment
Share on other sites

  • 1 month later...

Hello,

Can anyone help out and/or tell me if the errors were configured? I've read a lot of posts and most of them don't say if the problem was fixed and with the ones which were fixed I tried the solution with no luck. I feel I've followed all the steps correctly.

Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>cd c:\
c:\>cd Users
c:\Users>cd BigRed
c:\Users\BigRed>cd Downloads
c:\Users\BigRed\Downloads>cd DuckyEncoder
c:\Users\BigRed\Downloads\DuckyEncoder>java -jar encoder.jar -i source.txt
Hak5 Duck Encoder 2.6.3
Loading File ..... [ OK ]
Loading Keyboard File ..... [ OK ]
Loading Language File ..... [ OK ]
Loading DuckyScript ..... [ OK ]
DuckyScript Complete..... [ OK ]
c:\Users\BigRed\Downloads\DuckyEncoder>
Thanks in advance for any help :unsure:
Link to comment
Share on other sites

I see problems like this all the time. To be honest the easiest way is to type duck toolkit into google, and just make the payload online. It generates the .bin file for you and it works a treat.

Link to comment
Share on other sites

Well,,,, I believe I am a few steps forward then I was before your help MB. I received a couple years with the online payload generator; however, made a couple of tweaks and I'm generating a no-error inject.bin.

When I transfer the SD back to the ducky nothing happens. I tried many of the payloads.

Any other suggestions? :(

Thanks.

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