Overcoming Layout Sensitivity in BadUSB: Seeking Community Wisdom

Hello, fellow enthusiasts!

I'm reaching out to tap into our collective genius regarding a challenging project I've embarked on. I'm working with a CJMCU BadUSB device, which is built on an Arduino Leonardo controller and equipped with an SD card slot. To enhance functionality, I've incorporated a 4-bit DIP-switch allowing for easy selection of scripts to execute. My script, which I've optimized significantly, achieves a keystroke injection speed of 1000-1500 characters per second.

The Challenge: I've encountered a stumbling block where the users' keyboard layout impacts the keycode mapping, disrupting the intended script output. My goal is to achieve a seamless execution irrespective of the users' layout, requiring zero interaction from the user's end. This task has proven to be daunting due to the dynamic nature of users' keyboard layouts, leading me into what seems like an endless loop of attempts.

One potential solution I considered was transforming the device into a HID/mass storage combo using LUFA, enabling script execution to relay the current layout information via the serial port back to the device. However, the complexity of this approach has left me second-guessing.

My Query to You: Have any of you faced similar challenges or have insights into making this work? The aim is to have a universally compatible solution that operates independently of the user's keyboard layout, maintaining the script's integrity across all scenarios. Any advice, experiences, or thoughts on this matter would be immensely appreciated.

OS: Windows 10/11

Thank you for taking the time to read and consider my dilemma. I look forward to your valuable input!

submitted by /u/No-Author-9692
[link] [comments]

from hacking: security in practice https://ift.tt/o3MBqG9

Comments