Jump to content

Bashbunny ch.json layouts on apple macbook


SunBeach

Recommended Posts

Hello!

I'v test USB-Rubber ducky on apple macbook, i'v found one layout problem for < and > key.

I'v modified ch.properties file to fix it (Work for FR.properties file to):

Quote

 

// 60 <
ASCII_3D = KEY_0, MODIFIERKEY_SHIFT
// 61 =
ASCII_3E = KEY_TILDE, MODIFIERKEY_SHIFT
// 62 >
ASCII_3F = KEY_MINUS, MODIFIERKEY_SHIFT

 

 

 

 

For bash-bunny i'v exactly same problem, i'v found key on ch.json. But i'm not able to fond correct code to modify this key...

"<":"00,00,64",     --> correspond to § and must be <

">":"02,00,64",    --> correspond to ° and must be >

Did you know how to find the correct code for this Keyboard?

I'v try to change some PID but thats change nothing for this key, i'm think it's ch.json file..

 

Tnx veary mutch!

Link to comment
Share on other sites

I'm find code here (page 56) --> https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf

64 Keyboard Non-us / and | 3
3 Typical language mappings: Belg:<\> FrCa:«°» Dan:<\> Dutch:]|[ Fren:<> Ger:<|> Ital:<> LatAm:<> Nor:<> Span:<> Swed:<|> Swiss:<\> UK:\| Brazil: \|.

Code correspond in ch.json file...🤓
Problem persiste on Macbook Pro, for @ <> and many other special key.🤬
I'v make small script to test different PID, dosent change the problem.🥶

I'm do my test on MacBook Pro (15-inch, Mid 2012) VID_0X05AC PID_0X0252
Somebody have Apple  keyboard Layouts for bash-bunny?
Or any other bashbunny language setup for apple keyboard?🙏

Tnx to all!

--------------------------------------------------------

Here Correction for USB Rubber Ducky

ch_FR-MAC.properties -->  for USB Rubber DUCKY correct misconfiguration for apple Ch_fr (Suisse-Romand) keyboard (<> @ )
 

Quote

//LAYOUT_SUISSE_ROMAND (ch_FR) - APPLE 
//USB Rubber Ducky ch_FR Keyboard Layouts
//Author - Powerslave ¦ Date - 07/02/13 ¦ Website - www.powerslave.ch
//Modification - www.Urban-Network.ch 06/05/17

KEY_NON_US_100 = 100
 
ASCII_20 = KEY_SPACE
// 32  
ASCII_21 = KEY_RIGHT_BRACE, MODIFIERKEY_SHIFT
// 33 !
ASCII_22 = KEY_2, MODIFIERKEY_SHIFT
// 34 "
ASCII_23 = KEY_3, MODIFIERKEY_RIGHT_ALT
// 35 # 
ASCII_24 = KEY_BACKSLASH
// 36 $
ASCII_25 = KEY_5, MODIFIERKEY_SHIFT
// 37 %
ASCII_26 = KEY_6, MODIFIERKEY_SHIFT
// 38 &
ASCII_27 = KEY_MINUS
// 39 ' 
ASCII_28 = KEY_8, MODIFIERKEY_SHIFT
// 40 ( 
ASCII_29 = KEY_9, MODIFIERKEY_SHIFT
// 41 )
ASCII_2A = KEY_3, MODIFIERKEY_SHIFT
// 42 *
ASCII_2B = KEY_1, MODIFIERKEY_SHIFT
// 43 +
ASCII_2C = KEY_COMMA
// 44 ,
ASCII_2D = KEY_SLASH
// 45 -
ASCII_2E = KEY_PERIOD
// 46 .
ASCII_2F = KEY_7, MODIFIERKEY_SHIFT
// 47 /
ASCII_30 = KEY_0
// 48 0
ASCII_31 = KEY_1
// 49 1
ASCII_32 = KEY_2
// 50 2
ASCII_33 = KEY_3
// 51 3
ASCII_34 = KEY_4
// 52 4
ASCII_35 = KEY_5
// 53 5
ASCII_36 = KEY_6
// 54 6
ASCII_37 = KEY_7
// 55 7
ASCII_38 = KEY_8
// 55 8
ASCII_39 = KEY_9
// 57 9
ASCII_3A = KEY_PERIOD, MODIFIERKEY_SHIFT
// 58 :
ASCII_3B = KEY_COMMA, MODIFIERKEY_SHIFT
// 59 ;
ASCII_3C = KEY_TILDE
// 60 <
ASCII_3D = KEY_0, MODIFIERKEY_SHIFT
// 61 =
ASCII_3E = KEY_TILDE, MODIFIERKEY_SHIFT
// 62 >
ASCII_3F = KEY_MINUS, MODIFIERKEY_SHIFT
// 63 ?
ASCII_40 = KEY_G, MODIFIERKEY_RIGHT_ALT
// 64 @
ASCII_41 = KEY_A, MODIFIERKEY_SHIFT
// 65 A
ASCII_42 = KEY_B, MODIFIERKEY_SHIFT
// 66 B
ASCII_43 = KEY_C, MODIFIERKEY_SHIFT
// 67 C
ASCII_44 = KEY_D, MODIFIERKEY_SHIFT
// 68 D
ASCII_45 = KEY_E, MODIFIERKEY_SHIFT
// 69 E
ASCII_46 = KEY_F, MODIFIERKEY_SHIFT
// 70 F
ASCII_47 = KEY_G, MODIFIERKEY_SHIFT
// 71 G
ASCII_48 = KEY_H, MODIFIERKEY_SHIFT
// 72 H
ASCII_49 = KEY_I, MODIFIERKEY_SHIFT
// 73 I
ASCII_4A = KEY_J, MODIFIERKEY_SHIFT
// 74 J
ASCII_4B = KEY_K, MODIFIERKEY_SHIFT
// 75 K
ASCII_4C = KEY_L, MODIFIERKEY_SHIFT
// 76 L
ASCII_4D = KEY_M, MODIFIERKEY_SHIFT
// 77 M
ASCII_4E = KEY_N, MODIFIERKEY_SHIFT
// 78 N
ASCII_4F = KEY_O, MODIFIERKEY_SHIFT
// 79 O
ASCII_50 = KEY_P, MODIFIERKEY_SHIFT
// 80 P
ASCII_51 = KEY_Q, MODIFIERKEY_SHIFT
// 81 Q
ASCII_52 = KEY_R, MODIFIERKEY_SHIFT
// 82 R
ASCII_53 = KEY_S, MODIFIERKEY_SHIFT
// 83 S
ASCII_54 = KEY_T, MODIFIERKEY_SHIFT
// 84 T
ASCII_55 = KEY_U, MODIFIERKEY_SHIFT
// 85 U
ASCII_56 = KEY_V, MODIFIERKEY_SHIFT
// 86 V
ASCII_57 = KEY_W, MODIFIERKEY_SHIFT
// 87 W
ASCII_58 = KEY_X, MODIFIERKEY_SHIFT
// 88 X
ASCII_59 = KEY_Z, MODIFIERKEY_SHIFT
// 89 Y
ASCII_5A = KEY_Y, MODIFIERKEY_SHIFT
// 90 Z
ASCII_5B = KEY_LEFT_BRACE, MODIFIERKEY_LEFT_ALT
// 91 [
ASCII_5C = KEY_NON_US_100, MODIFIERKEY_LEFT_ALT
// 92 
ASCII_5D = KEY_RIGHT_BRACE, MODIFIERKEY_LEFT_ALT
// 93 ]
ASCII_5E = KEY_EQUAL
// 94 ^
ASCII_5F = KEY_SLASH, MODIFIERKEY_SHIFT
// 95 _
ASCII_60 = KEY_EQUAL, MODIFIERKEY_SHIFT
//GRAVE_ACCENT_BITS + KEY_SPACE 
// 96 `
ASCII_61 = KEY_A
// 97 a
ASCII_62 = KEY_B
// 98 b
ASCII_63 = KEY_C
// 99 c
ASCII_64 = KEY_D
// 100 d
ASCII_65 = KEY_E
// 101 e
ASCII_66 = KEY_F
// 102 f
ASCII_67 = KEY_G
// 103 g
ASCII_68 = KEY_H
// 104 h
ASCII_69 = KEY_I
// 105 i
ASCII_6A = KEY_J
// 106 j
ASCII_6B = KEY_K
// 107 k
ASCII_6C = KEY_L
// 108 l
ASCII_6D = KEY_M
// 109 m
ASCII_6E = KEY_N
// 110 n
ASCII_6F = KEY_O
// 111 o
ASCII_70 = KEY_P
// 112 p
ASCII_71 = KEY_Q
// 113 q
ASCII_72 = KEY_R
// 114 r
ASCII_73 = KEY_S
// 115 s
ASCII_74 = KEY_T
// 116 t
ASCII_75 = KEY_U
// 117 u
ASCII_76 = KEY_V
// 118 v
ASCII_77 = KEY_W
// 119 w
ASCII_78 = KEY_X
// 120 x
ASCII_79 = KEY_Z
// 121 y
ASCII_7A = KEY_Y
// 122 z
ASCII_7B = KEY_8, MODIFIERKEY_LEFT_ALT
// 123 {
ASCII_7C = KEY_7, MODIFIERKEY_LEFT_ALT
// 124 |
ASCII_7D = KEY_9, MODIFIERKEY_LEFT_ALT
// 125 }
ASCII_7E = KEY_N, MODIFIERKEY_LEFT_ALT
// 126 ~
ASCII_7F = KEY_BACKSPACE
// 127
ISO_8859_1_A0 = KEY_SPACE
// 160       Nonbreakng Space
ISO_8859_1_A4 = KEY_11, MODIFIERKEY_LEFT_ALT
// 164 ¤     Currency Sign
ISO_8859_1_A7 = KEY_TILDE
// 167 §     SECTION SIGN
ISO_8859_1_B0 = KEY_TILDE, MODIFIERKEY_SHIFT
// 176 °     DEGREE SIGN
ISO_8859_1_B2 = KEY_11, MODIFIERKEY_LEFT_ALT
// 178 ²     SUPERSCRIPT TWO
ISO_8859_1_B3 = KEY_11, MODIFIERKEY_LEFT_ALT
// 179 ³     SUPERSCRIPT THREE
//ISO_8859_1_C0 = GRAVE_ACCENT_BITS + KEY_A, MODIFIERKEY_SHIFT 
// 192 À     A GRAVE
//ISO_8859_1_C1 = ACUTE_ACCENT_BITS + KEY_A, MODIFIERKEY_SHIFT 
// 193 Á     A ACUTE
//ISO_8859_1_C2 = CIRCUMFLEX_BITS = + KEY_A, MODIFIERKEY_SHIFT 
// 194 Â     A CIRCUMFLEX
ISO_8859_1_C4 = KEY_QUOTE, MODIFIERKEY_SHIFT
// 196 Ä     A DIAERESIS
//ISO_8859_1_C8 = GRAVE_ACCENT_BITS + KEY_E, MODIFIERKEY_SHIFT 
// 200 È     E GRAVE
//ISO_8859_1_C9 = ACUTE_ACCENT_BITS + KEY_E, MODIFIERKEY_SHIFT 
// 201 É     E ACUTE
//ISO_8859_1_CA = CIRCUMFLEX_BITS + KEY_E, MODIFIERKEY_SHIFT 
// 202 Ê     E CIRCUMFLEX
//ISO_8859_1_CC = GRAVE_ACCENT_BITS + KEY_I, MODIFIERKEY_SHIFT 
// 204 Ì     I GRAVE
//ISO_8859_1_CD = ACUTE_ACCENT_BITS + KEY_I, MODIFIERKEY_SHIFT 
// 205 Í     I ACUTE
//ISO_8859_1_CE = CIRCUMFLEX_BITS + KEY_I, MODIFIERKEY_SHIFT 
// 206 Î     I CIRCUMFLEX
//ISO_8859_1_D2 = GRAVE_ACCENT_BITS + KEY_O, MODIFIERKEY_SHIFT 
// 210 Ò     O GRAVE
//ISO_8859_1_D3 = ACUTE_ACCENT_BITS + KEY_O, MODIFIERKEY_SHIFT 
// 211 Ó     O ACUTE
//ISO_8859_1_D4 = CIRCUMFLEX_BITS + KEY_O, MODIFIERKEY_SHIFT 
// 212 Ô     O CIRCUMFLEX
ISO_8859_1_D6 = KEY_SEMICOLON, MODIFIERKEY_SHIFT
// 214 Ö     O DIAERESIS
//ISO_8859_1_D9 = GRAVE_ACCENT_BITS + KEY_U, MODIFIERKEY_SHIFT
// 217 Ù     U GRAVE
//ISO_8859_1_DA = ACUTE_ACCENT_BITS + KEY_U, MODIFIERKEY_SHIFT 
// 218 Ú     U ACUTE
//ISO_8859_1_DB = CIRCUMFLEX_BITS + KEY_U, MODIFIERKEY_SHIFT 
// 219 Û     U CIRCUMFLEX
ISO_8859_1_DC = KEY_LEFT_BRACE, MODIFIERKEY_SHIFT
// 220 Ü     U DIAERESIS
//ISO_8859_1_DD = ACUTE_ACCENT_BITS + KEY_Z, MODIFIERKEY_SHIFT 
// 221 Ý     Y ACUTE
ISO_8859_1_DF = KEY_MINUS
// 223 ß     SHARP S
//ISO_8859_1_E0 = GRAVE_ACCENT_BITS + KEY_A
// 224 à     a GRAVE
//ISO_8859_1_E1 = ACUTE_ACCENT_BITS + KEY_A
// 225 á     a ACUTE
//ISO_8859_1_E2 = CIRCUMFLEX_BITS + KEY_A
// 226 â     a CIRCUMFLEX
ISO_8859_1_E4 = KEY_QUOTE
// 228 ä     a DIAERESIS
//ISO_8859_1_E8 = GRAVE_ACCENT_BITS + KEY_E
// 232 è     e GRAVE
//ISO_8859_1_E9 = ACUTE_ACCENT_BITS + KEY_E
// 233 é     e ACUTE
//ISO_8859_1_EA = CIRCUMFLEX_BITS + KEY_E
// 234 ê     e CIRCUMFLEX
//ISO_8859_1_EC = GRAVE_ACCENT_BITS + KEY_I
// 236 ì     i GRAVE
//ISO_8859_1_ED = ACUTE_ACCENT_BITS + KEY_I
// 237 í     i ACUTE
//ISO_8859_1_EE = CIRCUMFLEX_BITS + KEY_I
// 238 î     i CIRCUMFLEX
//ISO_8859_1_F2 = GRAVE_ACCENT_BITS + KEY_O
// 242 ò     o GRAVE
//ISO_8859_1_F3 = ACUTE_ACCENT_BITS + KEY_O
// 243 ó     o ACUTE
//ISO_8859_1_F4 = CIRCUMFLEX_BITS + KEY_O
// 244 ô     o CIRCUMFLEX
ISO_8859_1_F6 = KEY_SEMICOLON
// 246 ö     o DIAERESIS
//ISO_8859_1_F9 = GRAVE_ACCENT_BITS + KEY_U
// 249 ù     u GRAVE
//ISO_8859_1_FA = ACUTE_ACCENT_BITS + KEY_U
// 250 ú     u ACUTE
//ISO_8859_1_FB = CIRCUMFLEX_BITS + KEY_U
// 251 û     u CIRCUMFLEX
ISO_8859_1_FC = KEY_LEFT_BRACE
// 252 ü     u DIAERESIS
//ISO_8859_1_FD = ACUTE_ACCENT_BITS + KEY_Z
// 253 ý     y ACUTE
UNICODE_20AC = KEY_E, MODIFIERKEY_LEFT_ALT
//     €     Euro Sign

 

 

 

Link to comment
Share on other sites

Hello!

Got same problem, i'v found how to correct @ , ~ , \ , ' ....
I'v not found < and > for moment.

ch_fr-Mac.json (Alpha!! - not fully functional for moment):
Help appreciated!
Tnx All

{
    "__comment":"All numbers here are in hex format and 0x is ignored.",
    "__comment":" ",
    "__comment":"This list is in ascending order of 3rd byte (HID Usage ID).",
    "__comment":"  See section 10 Keyboard/Keypad Page (0x07)",
    "__comment":"  of document USB HID Usage Tables Version 1.12.",
    "__comment":" ",
    "__comment":"Definition of these 3 bytes can be found",
    "__comment":"  in section B.1 Protocol 1 (Keyboard)",
    "__comment":"  of document Device Class Definition for HID Version 1.11",
    "__comment":"  - byte 1: Modifier keys",
    "__comment":"  - byte 2: Reserved",
    "__comment":"  - byte 3: Keycode 1",
    "__comment":" ",
    "__comment":"Both documents can be obtained from link here",
    "__comment":"  http://www.usb.org/developers/hidpage/",
    "__comment":" ",
    "__comment":"A = LeftShift + a, { = LeftShift + [",
    "__comment":" ",
    "__comment":"Modified key for Apple Macbook Keyboard Layoutrs \ '  "" @ ~  ",
    "a":"00,00,04",
    "b":"00,00,05",
    "c":"00,00,06",
    "d":"00,00,07",
    "e":"00,00,08",
    "f":"00,00,09",
    "g":"00,00,0a",
    "h":"00,00,0b",
    "i":"00,00,0c",
    "j":"00,00,0d",
    "k":"00,00,0e",
    "l":"00,00,0f",
    "m":"00,00,10",
    "n":"00,00,11",
    "o":"00,00,12",
    "p":"00,00,13",
    "q":"00,00,14",
    "r":"00,00,15",
    "s":"00,00,16",
    "t":"00,00,17",
    "u":"00,00,18",
    "v":"00,00,19",
    "w":"00,00,1a",
    "x":"00,00,1b",
    "z":"00,00,1c",
    "y":"00,00,1d",
    "1":"00,00,1e",
    "2":"00,00,1f",
    "3":"00,00,20",
    "4":"00,00,21",
    "5":"00,00,22",
    "6":"00,00,23",
    "7":"00,00,24",
    "8":"00,00,25",
    "9":"00,00,26",
    "0":"00,00,27",
    "ENTER":"00,00,28",
    "ESC":"00,00,29",
    "ESCAPE":"00,00,29",
    "TAB":"00,00,2b",
    " ":"00,00,2c",
    "SPACE":"00,00,2c",
    "'":"00,00,2d",
    "^":"00,00,2e",
    "$":"00,00,31",
    ",":"00,00,36",
    ".":"00,00,37",
    "-":"00,00,38",
    "CAPSLOCK":"00,00,39",
    "F1":"00,00,3a",
    "F2":"00,00,3b",
    "F3":"00,00,3c",
    "F4":"00,00,3d",
    "F5":"00,00,3e",
    "F6":"00,00,3f",
    "F7":"00,00,40",
    "F8":"00,00,41",
    "F9":"00,00,42",
    "F10":"00,00,43",
    "F11":"00,00,44",
    "F12":"00,00,45",
    "PRINTSCREEN":"00,00,46",
    "SCROLLLOCK":"00,00,47",
    "BREAK":"00,00,48",
    "PAUSE":"00,00,48",
    "INSERT":"00,00,49",
    "HOME":"00,00,4a",
    "PAGEUP":"00,00,4b",
    "DEL":"00,00,4c",
    "DELETE":"00,00,4c",
    "END":"00,00,4d",
    "PAGEDOWN":"00,00,4e",
    "RIGHT":"00,00,4f",
    "RIGHTARROW":"00,00,4f",
    "LEFT":"00,00,50",
    "LEFTARROW":"00,00,50",
    "DOWN":"00,00,51",
    "DOWNARROW":"00,00,51",
    "UP":"00,00,52",
    "UPARROW":"00,00,52",
    "<":"00,00,32",
    "APP":"00,00,65",
    "MENU":"00,00,65",
    "ALT-TAB":"00,00,71",
    "CONTROL":"01,00,00",
    "CTRL":"01,00,00",
    "SHIFT":"02,00,00",
    "A":"02,00,04",
    "B":"02,00,05",
    "C":"02,00,06",
    "D":"02,00,07",
    "E":"02,00,08",
    "F":"02,00,09",
    "G":"02,00,0a",
    "H":"02,00,0b",
    "I":"02,00,0c",
    "J":"02,00,0d",
    "K":"02,00,0e",
    "L":"02,00,0f",
    "M":"02,00,10",
    "N":"02,00,11",
    "O":"02,00,12",
    "P":"02,00,13",
    "Q":"02,00,14",
    "R":"02,00,15",
    "S":"02,00,16",
    "T":"02,00,17",
    "U":"02,00,18",
    "V":"02,00,19",
    "W":"02,00,1a",
    "X":"02,00,1b",
    "Z":"02,00,1c",
    "Y":"02,00,1d",
    "+":"02,00,1e",
    "\"":"02,00,1f",
    "*":"02,00,20",
    "%":"02,00,22",
    "&":"02,00,23",
    "/":"02,00,24",
    "(":"02,00,25",
    ")":"02,00,26",
    "=":"02,00,27",
    "?":"02,00,2d",
    "`":"02,00,2e",
    "!":"02,00,30",
    ";":"02,00,36",
    ":":"02,00,37",
    "_":"02,00,38",
    ">":"02,00,32",
    "CTRL-SHIFT":"03,00,00",
    "ALT":"04,00,00",
    "CTRL-ALT":"05,00,00",
    "ALT-SHIFT":"06,00,00",
    "COMMAND":"08,00,00",
    "GUI":"08,00,00",
    "WINDOWS":"08,00,00",
    "COMMAND-OPTION":"12,00,00",
    "@":"40,00,0a",
    "#":"40,00,20",
    "|":"40,00,24",
    "~":"04,00,11",
    "[":"40,00,2f",
    "]":"40,00,30",
    "}":"40,00,31",
    "{":"40,00,35",
    "\\":"06,00,24",
    "COMMAND-CTRL-SHIFT":"40,00,64",
    "COMMAND-CTRL":"40,00,64",
    "COMMAND-OPTION-SHIFT'":"40,00,64"
}

 

 

Link to comment
Share on other sites

Tnx syrah for your help! 
I'v continue your work and modified other keys...

Here Apple Layouts for Swiss_French Keyboard, correct and add some keys.
This file make bunny usable on Apple without invert all keys...

{
    "__comment":"Layout Suisse Romand (ch-FR_mac) Apple",
    "__comment":"Tab layouts are modified from original",
    "__comment":"All numbers here are in hex format and 0x is ignored.",
    "__comment":" ",
    "__comment":"This list is in ascending order of 3rd byte (HID Usage ID).",
    "__comment":"  See section 10 Keyboard/Keypad Page (0x07)",
    "__comment":"  of document USB HID Usage Tables Version 1.12.",
    "__comment":" ",
    "__comment":"Definition of these 3 bytes can be found",
    "__comment":"  in section B.1 Protocol 1 (Keyboard)",
    "__comment":"  of document Device Class Definition for HID Version 1.11",
    "__comment":"  - byte 1: Modifier keys",
    "__comment":"  - byte 2: Reserved",
    "__comment":"  - byte 3: Keycode 1",
    "__comment":" ",
    "__comment":"Both documents can be obtained from link here",
    "__comment":"  http://www.usb.org/developers/hidpage/",
    "__comment":" ",
    "__comment":"A = LeftShift + a, { = LeftShift + [",
    "__comment":" ",
    "a":"00,00,04",
    "b":"00,00,05",
    "c":"00,00,06",
    "d":"00,00,07",
    "e":"00,00,08",
    "f":"00,00,09",
    "g":"00,00,0a",
    "h":"00,00,0b",
    "i":"00,00,0c",
    "j":"00,00,0d",
    "k":"00,00,0e",
    "l":"00,00,0f",
    "m":"00,00,10",
    "n":"00,00,11",
    "o":"00,00,12",
    "p":"00,00,13",
    "q":"00,00,14",
    "r":"00,00,15",
    "s":"00,00,16",
    "t":"00,00,17",
    "u":"00,00,18",
    "v":"00,00,19",
    "w":"00,00,1a",
    "x":"00,00,1b",
    "z":"00,00,1c",
    "y":"00,00,1d",
    "1":"00,00,1e",
    "2":"00,00,1f",
    "3":"00,00,20",
    "4":"00,00,21",
    "5":"00,00,22",
    "6":"00,00,23",
    "7":"00,00,24",
    "8":"00,00,25",
    "9":"00,00,26",
    "0":"00,00,27",
    "ENTER":"00,00,28",
    "ESC":"00,00,29",
    "ESCAPE":"00,00,29",
    "TAB":"00,00,2b",
    " ":"00,00,2c",
    "SPACE":"00,00,2c",
    "'":"00,00,2d",
    "^":"00,00,2e",
    "$":"00,00,31",
    	"£":"02,00,31",
    	"€":"04,00,08",
    ",":"00,00,36",
    ".":"00,00,37",
    "-":"00,00,38",
    "CAPSLOCK":"00,00,39",
    "F1":"00,00,3a",
    "F2":"00,00,3b",
    "F3":"00,00,3c",
    "F4":"00,00,3d",
    "F5":"00,00,3e",
    "F6":"00,00,3f",
    "F7":"00,00,40",
    "F8":"00,00,41",
    "F9":"00,00,42",
    "F10":"00,00,43",
    "F11":"00,00,44",
    "F12":"00,00,45",
    "PRINTSCREEN":"00,00,46",
    "SCROLLLOCK":"00,00,47",
    "BREAK":"00,00,48",
    "PAUSE":"00,00,48",
    "INSERT":"00,00,49",
    "HOME":"00,00,4a",
    "PAGEUP":"00,00,4b",
    "DEL":"00,00,4c",
    "DELETE":"00,00,4c",
    "END":"00,00,4d",
    "PAGEDOWN":"00,00,4e",
    "RIGHT":"00,00,4f",
    "RIGHTARROW":"00,00,4f",
    "LEFT":"00,00,50",
    "LEFTARROW":"00,00,50",
    "DOWN":"00,00,51",
    "DOWNARROW":"00,00,51",
    "UP":"00,00,52",
    "UPARROW":"00,00,52",
    	"<":"00,00,35",
    "APP":"00,00,65",
    "MENU":"00,00,65",
    "ALT-TAB":"00,00,71",
    "CONTROL":"01,00,00",
    "CTRL":"01,00,00",
    "SHIFT":"02,00,00",
    "A":"02,00,04",
    "B":"02,00,05",
    "C":"02,00,06",
    "D":"02,00,07",
    "E":"02,00,08",
    "F":"02,00,09",
    "G":"02,00,0a",
    "H":"02,00,0b",
    "I":"02,00,0c",
    "J":"02,00,0d",
    "K":"02,00,0e",
    "L":"02,00,0f",
    "M":"02,00,10",
    "N":"02,00,11",
    "O":"02,00,12",
    "P":"02,00,13",
    "Q":"02,00,14",
    "R":"02,00,15",
    "S":"02,00,16",
    "T":"02,00,17",
    "U":"02,00,18",
    "V":"02,00,19",
    "W":"02,00,1a",
    "X":"02,00,1b",
    "Z":"02,00,1c",
    "Y":"02,00,1d",
    "+":"02,00,1e",
    "\"":"02,00,1f",
    "*":"02,00,20",
    "%":"02,00,22",
    "&":"02,00,23",
    "/":"02,00,24",
    "(":"02,00,25",
    ")":"02,00,26",
    "=":"02,00,27",
    "?":"02,00,2d",
    "`":"02,00,2e",
    "!":"02,00,30",
    ";":"02,00,36",
    ":":"02,00,37",
    "_":"02,00,38",
    	">":"02,00,35",
    	"§":"00,00,64",
    	"°":"02,00,64",
    "CTRL-SHIFT":"03,00,00",
    "ALT":"04,00,00",
    "CTRL-ALT":"05,00,00",
    "ALT-SHIFT":"06,00,00",
    "COMMAND":"08,00,00",
    "GUI":"08,00,00",
    "WINDOWS":"08,00,00",
    "COMMAND-OPTION":"12,00,00",
    	"@":"40,00,0a",
    "#":"04,00,20",
    "|":"04,00,24",
    	"~":"04,00,11",
    	"[":"04,00,22",
    	"]":"04,00,23",
    	"}":"04,00,26",
    	"{":"04,00,25",
    "\\":"06,00,24",
    "COMMAND-CTRL-SHIFT":"40,00,64",
    "COMMAND-CTRL":"40,00,64",
    "COMMAND-OPTION-SHIFT'":"40,00,64"
}

 

I'v write a small script to verify layouts...  Not all keys are on script but the most important. (every key respond like in the terminal are not in this test file)

#!/bin/bash
#
# Title:         Apple Layouts Bunny Tester
# Author:        Sun-Beach
# Version:       0.1
#
# Test Bashbunny Layouts and vid-pid
# Setup correct VID PID for your keyboard
# On Apple we found correct VID PID on System profiler --> USB --> Keyboard
# 
# Some keys are not on this test file, add it yourself if you need..
#
# Amber...............Starting and Setup
# Blue................Executing payload Get textedit and open new file
# Yellow Blink........Executing payload test layouts
# Green...............Finished
#

#Led Rule
SETUP
# Gimme a Keyboard please. Thanks.
# Modify here your VID PID if nedded
ATTACKMODE HID VID_0X05AC PID_0x0252

LED B

# Get spotlight
QUACK DELAY 500
QUACK GUI SPACE
QUACK DELAY 700

# find and Open Textedit
QUACK STRING textedit
QUACK DELAY 300
QUACK ENTER
QUACK DELAY 3000

# Open new file
QUACK GUI n
QUACK DELAY 1000


LEB Y SLOW
# Testing special keys..
#QUACK STRING  key_nubber / Name / key
#QUACK KEYCODE hexCode


QUACK STRING 1 alpha a 
QUACK KEYCODE 00,00,04
QUACK ENTER
QUACK STRING 2 quebek q
QUACK KEYCODE 00,00,14
QUACK ENTER
QUACK STRING 3 whiskey w
QUACK KEYCODE 00,00,1a
QUACK ENTER
QUACK STRING 4 xenon x
QUACK KEYCODE 00,00,1b
QUACK ENTER
QUACK STRING 6 youpiii y
QUACK KEYCODE 00,00,1d
QUACK ENTER
QUACK STRING 5 zebra z
QUACK KEYCODE 00,00,1c

QUACK ENTER
QUACK STRING 7 circonflex ^
QUACK KEYCODE 00,00,2e
QUACK ENTER
QUACK STRING 8 dollars $
QUACK KEYCODE 00,00,31
QUACK ENTER
QUACK STRING 9 virga ,
QUACK KEYCODE 00,00,36
QUACK ENTER
QUACK STRING 10 dot .
QUACK KEYCODE 00,00,37
QUACK ENTER
QUACK STRING 11 score -
QUACK KEYCODE 00,00,38
QUACK ENTER
QUACK STRING 12 plus +
QUACK KEYCODE 02,00,1e
QUACK ENTER
QUACK STRING 13 percent %
QUACK KEYCODE 02,00,22
QUACK ENTER
QUACK STRING 14 slash /
QUACK KEYCODE 02,00,24
QUACK ENTER
QUACK STRING 15 egal =
QUACK KEYCODE 02,00,27
QUACK ENTER
QUACK STRING 16 quetion ?
QUACK KEYCODE 02,00,2d
QUACK ENTER
QUACK STRING 17 exclam !
QUACK KEYCODE 02,00,30
QUACK ENTER
QUACK STRING 18 doubbledot :
QUACK KEYCODE 02,00,37
QUACK ENTER
QUACK STRING 19 underscore _
QUACK KEYCODE 02,00,38
QUACK ENTER
QUACK STRING 20 at @
QUACK KEYCODE 40,00,0a
QUACK ENTER
QUACK STRING 21 dieze #21
QUACK KEYCODE 04,00,20
QUACK ENTER
QUACK STRING 22 pipe |22
QUACK KEYCODE 04,00,24
QUACK ENTER
QUACK STRING 23 user ~ 
QUACK KEYCODE 04,00,11
QUACK ENTER
QUACK STRING 24 open [
QUACK KEYCODE 04,00,22
QUACK ENTER
QUACK STRING 25 close ]
QUACK KEYCODE 04,00,23
QUACK ENTER
QUACK STRING } specialclose 26
QUACK KEYCODE 04,00,26
QUACK ENTER
QUACK STRING { specialopen 27
QUACK KEYCODE 04,00,25
QUACK ENTER
QUACK STRING  < chevronopen 28
QUACK KEYCODE 00,00,35
QUACK ENTER
QUACK STRING  > chevronclose 29
QUACK KEYCODE 02,00,35
QUACK ENTER
QUACK STRING  \ Backslash 30
QUACK KEYCODE 02,00,35
QUACK ENTER


LEB G

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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