[usbproxy] Re: question about injectors

  • From: Dominic Spill <dominicgs@xxxxxxxxx>
  • To: usbproxy@xxxxxxxxxxxxx
  • Date: Thu, 25 Feb 2016 13:30:32 +0000

On 23 February 2016 at 12:44, Jonathan Conway <jonco29@xxxxxxxxx> wrote:


is it expecting a raw HID message, or is it expecting a Packet?

You can probably determine this from the filter - have it log
everything it sees, the injector needs to provide the same
information.

For instance, just as an understanding, I want to take the Packet logger for
a Keyboard, and for every key press, I want to inject a release and then a
press of the next numerical value of the key, and let the actual key release
be the release

i.e.
* i type 'j'
* 'j' press get tx'd
* I want to inject a release, inject a 'k' press
* 'j' is released

It's been along time since I worked with HID, but I seem to remember
that the key up reports specify the key that has been released.  Can
anyone else confirm that?  I'm on airport wifi and can't seem to
download the HID spec.

i figured as i'm playing, i could just write a little udp socket in the key
logger and send my release and fake press there.  does that make sense?

You can write a combined filter/injector.  There should be one in the
repository.  It's a bit of a mess, but it allows you to have control
over the filtering and injecting from the same code.

Dominic

Other related posts: