kernc / logkeys

:memo: :keyboard: A GNU/Linux keylogger that works!
Other
765 stars 253 forks source link

Doesn't find keyboard device #215

Closed mb64 closed 3 years ago

mb64 commented 4 years ago

On my computer, it fails to recognize the correct keyboard device by default. It's an old MacBook which has the internal keyboard on the USB bus.

The correct event is /dev/input/device8.

/proc/bus/input/devices ``` I: Bus=0019 Vendor=0000 Product=0005 Version=0000 N: Name="Lid Switch" P: Phys=PNP0C0D/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0 U: Uniq= H: Handlers=event0 B: PROP=0 B: EV=21 B: SW=1 I: Bus=0019 Vendor=0000 Product=0001 Version=0000 N: Name="Power Button" P: Phys=PNP0C0C/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1 U: Uniq= H: Handlers=kbd event1 B: PROP=0 B: EV=3 B: KEY=10000000000000 0 I: Bus=0019 Vendor=0000 Product=0003 Version=0000 N: Name="Sleep Button" P: Phys=PNP0C0E/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2 U: Uniq= H: Handlers=kbd event2 B: PROP=0 B: EV=3 B: KEY=4000 0 0 I: Bus=0019 Vendor=0000 Product=0001 Version=0000 N: Name="Power Button" P: Phys=LNXPWRBN/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3 U: Uniq= H: Handlers=kbd event3 B: PROP=0 B: EV=3 B: KEY=10000000000000 0 I: Bus=0019 Vendor=0000 Product=0006 Version=0000 N: Name="Video Bus" P: Phys=LNXVIDEO/video/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input4 U: Uniq= H: Handlers=kbd event4 B: PROP=0 B: EV=3 B: KEY=3e000b00000000 0 0 0 I: Bus=0003 Vendor=05ac Product=1000 Version=0111 N: Name="HID 05ac:1000" P: Phys=usb-0000:00:1a.0-1/input0 S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/0003:05AC:1000.0001/input/input5 U: Uniq= H: Handlers=sysrq kbd event5 leds B: PROP=0 B: EV=120013 B: KEY=e080ffdf01cfffff fffffffffffffffe B: MSC=10 B: LED=1f I: Bus=0003 Vendor=05ac Product=1000 Version=0111 N: Name="HID 05ac:1000" P: Phys=usb-0000:00:1a.0-1/input1 S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.1/0003:05AC:1000.0002/input/input6 U: Uniq= H: Handlers=event6 mouse0 B: PROP=0 B: EV=17 B: KEY=1f0000 0 0 0 0 B: REL=3 B: MSC=10 I: Bus=0003 Vendor=05ac Product=8242 Version=0111 N: Name="Apple Computer, Inc. IR Receiver" P: Phys=usb-0000:00:1d.2-1/input0 S: Sysfs=/devices/pci0000:00/0000:00:1d.2/usb7/7-1/7-1:1.0/0003:05AC:8242.0003/input/input7 U: Uniq= H: Handlers=kbd event7 B: PROP=0 B: EV=100003 B: KEY=10c0000800 c000000000000 10000000 I: Bus=0003 Vendor=05ac Product=0229 Version=0111 N: Name="Apple Computer Apple Internal Keyboard / Trackpad" P: Phys=usb-0000:00:1d.2-2/input0 S: Sysfs=/devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.0/0003:05AC:0229.0004/input/input8 U: Uniq= H: Handlers=sysrq kbd event8 leds B: PROP=0 B: EV=120013 B: KEY=10000 0 0 0 7b00001000 3800000000 e1aeffdf01cfffff fffffffffffffffe B: MSC=10 B: LED=1f I: Bus=0003 Vendor=05ac Product=0229 Version=0111 N: Name="Apple Computer Apple Internal Keyboard / Trackpad" P: Phys=usb-0000:00:1d.2-2/input2 S: Sysfs=/devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.2/0003:05AC:0229.0005/input/input9 U: Uniq= H: Handlers=kbd event9 B: PROP=0 B: EV=13 B: KEY=200000000 0 0 B: MSC=10 I: Bus=0010 Vendor=001f Product=0001 Version=0100 N: Name="PC Speaker" P: Phys=isa0061/input0 S: Sysfs=/devices/platform/pcspkr/input/input10 U: Uniq= H: Handlers=kbd event10 B: PROP=0 B: EV=40001 B: SND=6 I: Bus=0003 Vendor=05ac Product=0229 Version=0007 N: Name="appletouch" P: Phys=usb-0000:00:1d.2-2/input0 S: Sysfs=/devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.1/input/input11 U: Uniq= H: Handlers=event11 mouse1 B: PROP=0 B: EV=b B: KEY=6420 10000 0 0 0 0 B: ABS=1000003 I: Bus=0001 Vendor=10ec Product=0885 Version=0001 N: Name="HDA Digital PCBeep" P: Phys=card0/codec#0/beep0 S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input12 U: Uniq= H: Handlers=kbd event12 B: PROP=0 B: EV=40001 B: SND=6 I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA Intel Line" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input13 U: Uniq= H: Handlers=event13 B: PROP=0 B: EV=21 B: SW=2000 I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA Intel Headphone" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input14 U: Uniq= H: Handlers=event14 B: PROP=0 B: EV=21 B: SW=4 I: Bus=0019 Vendor=0000 Product=0000 Version=0000 N: Name="applesmc" P: Phys= S: Sysfs=/devices/platform/applesmc.768/input/input15 U: Uniq= H: Handlers=event15 js0 B: PROP=0 B: EV=9 B: ABS=3 ```