-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Describe the bug
BadUSB/BLE function doesn't work properly with Turkish keyboard layout (tr-TR).
Characters and punctuation marks are incorrectly mapped when executing payloads.
Steps To Reproduce
-
Set Bruce device keyboard layout to 'tr' (Turkish Q)
-
Set target PC keyboard layout to Turkish Q (Windows: 0000041f)
-
Create payload file with content:
GUI r
DELAY 500
STRING https://www.youtube.com/watch?v=5wpkmj5YjWI
ENTER -
Execute payload via BadUSB or BadBLE
-
Observe incorrect character output
Expected behavior
Payload should execute as written:
https://www.youtube.com/watch?v=5wpkmj5YjWI
Actual behavior
Output contains incorrect characters:
httpsÇ//wwwçYoutubeçcom/watch?v=5wpkmj5YjWI
Character Mapping Analysis
Problematic characters identified:
.(dot) →Ç(incorrect)/(slash) →ç(incorrect)
Device Info
- Device: T-Embed CC1101 Plus
- Bruce Firmware Version: 23857bc
- Connection Type: USB/BLE
Environment
- Target OS: Windows 11 25H2 Turkish
- Keyboard Layout: Turkish Q (0000041f)
- Hardware: Standard Turkish Q keyboard
Additional Testing Results
Tested with different character sets:
- Lowercase:
abcçdefgğhıijklmnoöprsştuüvyzCorrect - Uppercase:
ABCÇDEFGĞHIİJKLMNOÖPRSŞTUÜVYZCorrect - Punctuation:
.,;:\'"!?Errors - Numbers:
0123456789Correct - Special:
/@#$%^&*()Errors
Suggested Fix
The Turkish layout file needs proper scancode mapping for:
- Punctuation marks (.,;:'"!? etc.)
- Special characters (/ @ # $ % ^ & * and Turkısh special characters)
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists