Jump to content

Dnucna

Active Members
  • Posts

    40
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Dnucna

  1. Hi Thermostaten, you must fix the da.properties. I have done enough :) To do that you must match your keys with the US keyboard as reference. http://en.wikipedia.org/wiki/Keyboard_layout For example: Å ISO_8859_1_C5 = KEY_LEFT_BRACE, MODIFIERKEY_SHIFT For the keys I only manage right_alt or shift but not both at the same time. I added some error message to help debug new layout file (download the version 2.1). [23:02:33]jar$ java -jar encoder.jar -i ../payload/payloadda.txt -l da Char not found:ASCII_60 Char not found:ASCII_5E Char not found:ISO_8859_1_BE Char not found:ISO_8859_1_A1[/CODE] See you! Dnu
  2. Hi, I just done a little awk for that :) gedit convert.sh & chmod +x convert.sh ./convert.sh script.bat[/CODE] [CODE] #!/bin/bash awk 'BEGIN{ print "DELAY 3000\n"\ "GUI R\n"\ "DELAY 300\n"\ "STRING cmd\n"\ "ENTER\n"\ "DELAY 300\n"\ "STRING copy con BATCH.BAT\n"\ "ENTER" }{ print "STRING "$0"\nENTER" } END{ print "CTRL z\n"\ "STRING BATCH.BAT\n"\ "ENTER" }' $1 [/CODE]
  3. Hi, not sure this "modifier" exists on every computer. On certain laptops the hardware emulates keys whereas others consider FN as a modifier. http://askubuntu.com/questions/80777/how-to-find-keycodes-for-fn-keys Mine acts like the second case. So I can't help you. Dnucna
  4. You then have to click on "Save File to......your computer." The second button. I don't know where to upload my zip else...
  5. Hi all, I'm not from the hak5 team but I wanted the share my work. I previously posted it but it went unnoticed :( So I modestly try to call it Encode V2.0 to have more success :) You can download the jar and the source code there : http://code.google.com/p/ducky-decode/ (It can be hosted on the official github.) For the untested layouts I just transformed the teensyduino layout file, but I didn't convert the accentuated keys. You can send me your modifications. Take a look at the French layout to have a good example. Enjoy! Dnucna V 2.4 - Added REPEAT command V 2.3 - Added ALT-SHIFT for Input Language Swap V 2.2 - Bug with GUI key - command key added for Mac V 2.1 - Added debug message for unknown chars V 2.0 - Added customized layout support (support ASCII, ISO-8859-1, Unicode) - fr: French (tested) - pt: Portuguese (tested) - us: English-US (tested) - be: Belgian (not tested) - da: Danish (not tested) - de: German (not tested) - no: Norwegian (not tested) - sv: Swedish (not tested) - uk: English-UK (not tested) - Added multiple modifier - ctrl-alt - ctrl-shift - Default_delay fix Edit (midnitesnake): Added version 2.4 information.
  6. Hi, I send you a private message. Can you send me your properties files ? Zip all your folder, I will try to replay the bug. Dnucna
  7. Hi, in fact I'm not sure that defaultdelay is working. // Default delay if (!delayOverride & defaultDelay != 0x00) { while (defaultDelay > 0) { file.add((byte) 0x00); if (defaultDelay > 255) { file.add((byte) 0xFF); defaultDelay = defaultDelay - 255; } else { file.add((byte) defaultDelay); defaultDelay = 0; } } } The parameter defaultdelay must not be changed so it's 0 for the next instruction. if (instruction[0].equals("DEFAULT_DELAY") || instruction[0].equals("DEFAULTDELAY")) { defaultDelay = (byte) Integer.parseInt(instruction[1].trim()); } And the value must not be cast in byte. I proposed some modifications there : http://forums.hak5.org/index.php?showtopic=26782 Regards, Dnucna
  8. Hi Cubicbit, Sorry for the delay. Try to download again my zip file. I have fixed this bug some times ago if you watch my first post (the edit). Is the line 203 "file.add(strToByte(keyboardProps.getProperty("MODIFIERKEY_CTRL")));" ? Tell me if it works. Regards, Dnucna
  9. Hi cubicbit, thank you for the feedback. I give you some advices for your problem: 1) Don't put the comment on the same line as the key. Properties don't strip them (me neither). // CHAR(~ ^) KEY POSITION 42 (PORTUGUESE KEYBOARD) KEY_NON_US_42 = 0x32 2) You can put these keys in your pt.properties. Look at the beginning of my French layout : // french layout KEY_NON_US_100 = 100 3) You can use the jar with an external layout java -jar encoder.jar -i payload.txt -l /path/to/pt.properties 4) If you want compile the code, put the pt.properties en keyboard.properties in a "resources" folder. Look at the zip. Cheers, Dnucna
  10. Hi, here is my version of the encoder: http://code.google.com/p/ducky-decode/ (2.1) See this topic for information: http://forums.hak5.org/index.php?/topic/27257-duck-encoder-v20-released-081612/ Cheers, Dnucna
×
×
  • Create New...