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

Inverted < > and \ | on Mac Italian keyboard #2472

Closed
MrVideo opened this issue Mar 8, 2023 · 5 comments
Closed

Inverted < > and \ | on Mac Italian keyboard #2472

MrVideo opened this issue Mar 8, 2023 · 5 comments
Assignees
Labels
Bug USB BadUSB + physical USB interface

Comments

@MrVideo
Copy link

MrVideo commented Mar 8, 2023

Describe the bug.

The keys < > and \ | are inverted on the it-IT keyboard layout on Mac. No USB Ducky script that uses those characters can work properly unless this issue is fixed.

For example, the demo_macos.txt script that comes with the device does not work properly. You can see the output of that script here:

❯ cat | /dev/null \\ EOF
zsh: permission denied: /dev/null
Hello World!
❯ ============================================================
zsh: =========================================================== not found
❯ 
❯               _.-------.._                    -,
zsh: command not found: _.-------.._
❯           .-"'''"--..,,_/ /'-,               -,  <
quote>        .:"          /:/  /'<  <     ,_...,  '. >  >
zsh: parse error near `<'
❯       /       ,----/:/  /'< _<'_-"'     _;
dquote>      '      / /'"""'< < <.'_-'      ,-"'/
zsh: permission denied: /
❯     >      > >  0    > > .-'      ,/'  /
zsh: parse error near `>'
❯    >    ,..< <     ,.-"'       ,/'    /
zsh: parse error near `<'
❯   ;    :    '/'""<'           ,/--==,/-----,
quote>   >    '-...>        -.___-Z:_______J...---;
zsh: no such file or directory:            ,/--==,/-----,\n  >    -...
❯   :         '                           _-'
❯  _L_  _     ___  ___  ___  ___  ____--"'
dquote> > __>> >   >_ _>> _ <> _ <> __>> _ <
dquote> > _> > >__  > > >  _/>  _/> _> >   /
dquote> >_>  >____>>___>>_>  >_>  >___>>_>_<
dquote> 
dquote> Flipper Zero BadUSB feature is compatible with USB Rubber Ducky script format
dquote> More information about script syntax can be found here:
dquote> https://github.com/flipperdevices/flipperzero-firmware/blob/dev/documentation/file_formats/BadUsbScriptFormat.md
dquote> EOF
dquote> 

By manually inverting these keys properly in the file, the script produces the correct output.

Would it be possible to get an Italian Mac keyboard layout in the future?

Thanks.

Reproduction

  1. Go to the main menu
  2. Open the Bad USB application
  3. Select demo_macos.txt
  4. Run the script
  5. The result should be similar to the one described above

Target

No response

Logs

No response

Anything else?

No response

@MrVideo MrVideo added the Bug label Mar 8, 2023
@optimus10ro
Copy link

Use ALTSTRING instead of STRING

ALTSTRING codes are language independent.

@skotopes skotopes added the USB BadUSB + physical USB interface label Mar 13, 2023
@skotopes
Copy link
Member

@nminaylov can you check keyboard map?

@skotopes
Copy link
Member

What we missing is it-IT-mac, it will be nice if someone contribute correct one.

@skotopes
Copy link
Member

Was fixed in #3401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug USB BadUSB + physical USB interface
Projects
None yet
Development

No branches or pull requests

4 participants