flipperzero-firmware icon indicating copy to clipboard operation
flipperzero-firmware copied to clipboard

BadUSB: allow SYSRQ keys

Open rck opened this issue 2 years ago • 0 comments

Describe the enhancement you're suggesting.

With the current version of the ducky script interpreter it is not possible to send SysRq keys, which would be a very useful feature. For example it would be possible to safely reboot a frozen Linux machine or as the name "badusb" suggest be really bad in just a few characters of script.

SysRq (i.e., Alt + PRTSCR + key) can not be done with the current logic as modkeys/combinations are binary-or-ed and then sent as a single keypress. Here we have to press multiple keys. Good news is that we are free to do that by adding a new SYSRQ keyword to the language. This then allows a script like

SYSRQ b

to reboot a frozen box.

This is a tracking issue for what was implemented in https://github.com/flipperdevices/flipperzero-firmware/pull/1460 .

rck avatar Jul 29 '22 06:07 rck