sensepost / USaBUSe

Universal Serial aBUSe is a project to demonstrate the risks of hardware bypasses of software security by Rogan Dawes at SensePost.
Other
491 stars 86 forks source link

Improve keyboard consistency #4

Open RoganDawes opened 8 years ago

RoganDawes commented 8 years ago

Occasionally, the keystroke pipeline may stall, leaving a keydown event as the last thing sent to the target. If the stall is long enough, this can result in keyboard repeat activating on the target OS, ruining whatever was being typed.

The HID code (or common code) could introspect the HID events being issued, and ensure that key down events are only sent when the corresponding key up event is already in the pipeline.