Jump to content

Rubber Ducky - Inject.bin isn't executing code


Recommended Posts

Hi,

I just got my first Rubber Ducky. when inserting the Rubber Ducky for the first time the default "hello" program worked as expected.
I have tried building and writing a my own inject.bin

The syntax i have used:
"DELAY 3000
 GUI r
 DELAY 200
 STRING notepad
 ENTER
 DELAY 200
 STRING Hello World!!!
 ENTER"

After writing the new inject.bin - i can see that the green light is flashing but nothing happens
I have tried writing the inject.bin from windows and from a linux virtualbox machine but nothing changed

Did anyone encounter this issue ? Any idea what could be the issue ?

 

Thanks

Link to comment
Share on other sites

If you are doing this from the command line, make sure you're using the correct repository from github:

https://github.com/hak5darren/USB-Rubber-Ducky


From the ReadMe:

This new version allows you to use alternative layout. It supports ASCII, ISO-8859-1 and unicode.

$java -jar duckencode.jar -i script.txt -o inject.bin -l fr
or
$java -jar duckencode.jar -i script.txt -o inject.bin -l resources/mylayout.properties

(mylayout.properties = keyboard layout - so us.properties if in US)

Alternatively, you can use the DuckToolKit - which is what I used for my first few scripts:

https://ducktoolkit.com/encoder/

See if the toolkit resolves you're issues; however at this point I prefer the actual duck encoder.

D

Edited by Decoy
Link to comment
Share on other sites

OK good. I think the problem with the command line is you might be missing the keyboard layout. Try doing this whenever you get the chance:

jar duckencode.jar -i script.txt -o inject.bin -l resources/us.properties

Obviously the above line assumes you're in the US, so change it to whatever keyboard makes the most sense. I eventually ran into a problem with certain characters not converting correctly with the ducktoolkit. Good luck,

D

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.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...