Jump to content

[Question][Encoder]Ducky not printing a backslash character on UK keyboard map


Recommended Posts

Hello all,

Apologies in advance if this is an issue that has previously been resolved. I searched this forum for my issue and in the FAQ but wasn't able to find a solution.

The issue I have is that I'm unable to get the Ducky to print a backslash character using a UK keyboard map. Printing forward slash character is fine.

Tested with the following -:

Firmware - stock firmware that came with the Ducky (v1 I believe) and the Ducky Community edition v2.1 (duck_v2.1hex)

Encoders - v1.2 duckencoder from the GitHub wiki and v2.6 from the Google Code Ducky Community site

Keyboard using UK keyboard map on Windows 7

Simple script to output a backslash character -:

DELAY 3000

GUI r

STRING notepad.exe

DELAY 100

ENTER

STRING backslash test - \

DELAY 100

ENTER

STRING double backslash escaping test - \\

Payload generation command with v2.6 encoder -:

java -jar encoder.jar -l uk -i ducktst.txt -o <ducky drive>\inject.bin

If I remove the -l uk option to default to the US keyboard map it will print a pound/hash character for the backslash which is what I would expect to see.

When the encoder generates the payload it passes all the checks but for the Duckyscript check it returns a warning - 'Key not found:KEY_NON_US_100'.

Anyone come across this problem before ?

Thanks in advance,

Aaron

Edited by redmeatuk
Link to comment
Share on other sites

try the following, do you get the same result?

java -jar encoder.jar -l resources\uk.properties -i ducktst.txt -o <ducky drive>\inject.bin
Edited by midnitesnake
Link to comment
Share on other sites

Ahh thanks for pointing me to the keymap files midnitesnake. I needed to make the following amendments to the resources\uk.properties file before the Ducky would echo out the backslash character.

Here are the modifications I made to the file -:

Comment out line 3

//KEY_BACKSLASH=64

ASCII code 92 is backslash so I left line 126 uncommented

ASCII_23 = KEY_BACKSLASH

Output from test script now prints following lines -:

backslash test - \

double backslash escaping test - \\

Edited by redmeatuk
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...