HID-RECORDER(1)

πŸ“¦
version 0.12 Β· 4 versions
, in arch rolling

πŸ’– NAME πŸ’–

hid-recorder β€” the HID input device recorder, bestie. That's it, that's the whole vibe.


✨ SYNOPSIS ✨

hid-recorder [--output=output_file] [/dev/hidrawX] [[/dev/hidrawX] [...]]

πŸŽ€ OPTIONS πŸŽ€

  • --output=path/to/file β€” sends the output into the file you name here instead of your terminal. Omit it and hid-recorder just prints to stdout like a normal little icon. 🫢

🌸 DESCRIPTION 🌸

okay so. hid-recorder captures report descriptors and hid reports (aka events) coming through the hidraw kernel module, then prints them all in a standardized format (scroll down, it's the next section, iykyk) so you can debug HID devices and replay them later. it's giving forensic girlboss energy fr fr.

run it with no arguments at all and it just shows you a list of the available devices β€” a little menu moment, we love to see it. πŸ’…

heads up though: hid-recorder has to be able to read from the hidraw device. usually that means it must be run as root. no cap, the permissions check does not care about your feelings 😭

πŸ¦‹ FILE FORMAT πŸ¦‹

the output of hid-recorder follows this syntax, and these prefixes are exactly what the parser looks for, so don't get creative with them:

  • # β€” comment lines, ignored when parsing (your little margin notes, they see nothing)
  • D: β€” the device index; only used when you're recording multiple devices
  • R: β€” the report descriptor length in bytes, followed by the report descriptor bytes in hexadecimal
  • N: β€” the name of the device
  • P: β€” physical path
  • I: β€” bus vendor_id product_id
  • E: β€” timestamp size report in hexadecimal

πŸ’€ EXIT CODE πŸ’€

hid-recorder returns 1 on error. that's the whole mood: chill when it works, 1 when it does not.

πŸ”₯ SEE ALSO πŸ”₯

  • hid-replay(1) β€” the other half of the duo, go say hi πŸ‘‘

Copyright 2012-2018, Benjamin Tissoires.

Copyright 2018, Red Hat, Inc.

🌈 AUTHOR 🌈

Benjamin Tissoires benjamin.tissoires@redhat.com


and that's the page bestie, go record some reports πŸ’œ β€” this one lives in the General Commands Manual, and the footer tag on it is literally just HID-RECORDER(1), signed off with the copyright years up above βœ¨πŸ’…

πŸ“¦ where this page comes from