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

readKeyState function for badusb mjs module #3939

Open
mantacid opened this issue Oct 11, 2024 · 0 comments
Open

readKeyState function for badusb mjs module #3939

mantacid opened this issue Oct 11, 2024 · 0 comments

Comments

@mantacid
Copy link

Describe the enhancement you're suggesting.

The firmware of most external keyboards allows the keyboard to receive signals from the device to which it is connected, in order to update the status LEDs for the caps-lock, num-lock, and scroll-lock keys. This could be a useful method of data exfiltration in airgapped systems: if the flipper zero could read the state of a virtual keyboard, a badusb payload could install and execute a script on the target machine that uses these keys to send data directly to the flipper itself.

The feature could take the form of a readKeyState() method in the JavaScript badusb module, or even a separate method for each key.

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant