Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BadUSB cannot handle accents, commas, or special characters #391

Closed
AizenEXE opened this issue Apr 4, 2025 · 1 comment
Closed

BadUSB cannot handle accents, commas, or special characters #391

AizenEXE opened this issue Apr 4, 2025 · 1 comment
Labels
enhancement New enhancement or request wontfix This will not be worked on

Comments

@AizenEXE
Copy link

AizenEXE commented Apr 4, 2025

Describe the bug.

When using the BadUSB module, any line containing accents (é, è, etc.), commas, or other special characters fails to execute correctly. The input gets cut off or behaves unexpectedly. This seems to be due to encoding or parsing issues with non-ASCII characters. A workaround is to avoid accents and punctuation entirely, but a fix would be appreciated.

Reproduction

  1. Create a BadUSB payload with the following line:
  • "STRING Bonjour, je m’appelle Jean et j’apporterai des pâtisseries dès demain."
  1. Run the payload via:
  • BadUSB app on Flipper Zero

  • Script placed in /badusb/ folder and launched manually with fr_FR layout

  1. Expected behavior:
  • The full sentence is typed out with all characters, including accents and commas.
  1. Actual behavior:
  • The script stops at the first special character (like ’, é, è, à, or ,)

Target

No response

Logs

On the flipper, the script stop and say 'ERROR: line 7 : No Keycode defined for "'

Anything else?

No response

@Willy-JL
Copy link
Member

Willy-JL commented Apr 4, 2025

unfortunately, a fix is not viable. the whole keyboard layout system and the scripting language are made around ascii characters. you should try to avoid non-ascii characters, or find alternative ways to type them like escaping characters in a shell prompt.

@Willy-JL Willy-JL closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2025
@Willy-JL Willy-JL added enhancement New enhancement or request wontfix This will not be worked on labels Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New enhancement or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants