brazen Posted February 17, 2014 Posted February 17, 2014 (edited) I am following root@kali:/media# cd /mediaroot@kali:/media# lsA87B-A154 cdrom cdrom0root@kali:/media# cd A87B-A154/root@kali:/media/A87B-A154# lsencoder.jar helloworld.txt inject.binroot@kali:/media/A87B-A154# java -jar encoder.jarHak5 Duck Encoder 2.6.3Usage: duckencode -i [file ..] encode specified file or: duckencode -i [file ..] -o [file ..] encode to specified fileArguments: -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 February 17, 2014 by brazen Quote
brazen Posted February 17, 2014 Author Posted February 17, 2014 i just thought to go inside of the inject.bin file on my sd card and see what is there with nano. this is what nano is reporting: ^K^@^H^@^O^@^O^@^R^@,^@^Z^@^R^@^U^@^O^@^G^@(^@ Quote
brazen Posted February 17, 2014 Author Posted February 17, 2014 solved... i had to push the button on the rubber ducky. but how to make this happen without pushing the button Quote
no42 Posted February 18, 2014 Posted February 18, 2014 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 Quote
Inorsd Posted March 19, 2014 Posted March 19, 2014 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 Quote
MB60893 Posted March 19, 2014 Posted March 19, 2014 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. Quote
Inorsd Posted March 19, 2014 Posted March 19, 2014 Thanks MB,,, I will give this a try and check back in with you if that's okay? Thanks again!! Quote
Inorsd Posted March 19, 2014 Posted March 19, 2014 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. Quote
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.