跟踪键盘和鼠标使用情况 [英] Track keyboard and mouse usage

查看:112
本文介绍了跟踪键盘和鼠标使用情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我一直在linux上搜索键盘和鼠标跟踪器。我已经看了/ b $ b读取解决方案(在sourceforge上观看),看看/ proc / interrupts到/ b $ b检查键盘或鼠标活动。我还阅读了一篇文章,其中观看

似乎难以跟踪usb键盘和鼠标。所以,我在这里想出了
的想法。


我的目标是:

1.检查键盘活动。我没有兴趣记录按下哪些键

或记录它们。

2.监控鼠标活动。我想知道指针位置,

左键单击,右键单击,鼠标中键使用。


我知道这些事情都可以完成在GUI环境中。我正在寻找

的一些方法来帮助我在整个系统中进行此操作。


欢迎提出任何建议。再次,我正在基于Linux的机器上寻找追踪器。

Hi all,
I have been searching for a keyboard and mouse tracker on linux. I''ve
read solutions (watch at sourceforge) which look at /proc/interrupts to
check keyboard or mouse activity. I also read one post where "watch"
seems to have difficulty tracking usb keyboards and mice. So, I''m out
of ideas here.

My goal are:
1. Check keyboard activity. I''m not interested in logging which keys
are pressed or record them.
2. Monitor mouse activity. I want to know the pointer position,
left-clicks, right-clicks, middle-mouse button usage.

I know that these things can be done in a GUI environment. I am looking
for some approach that helps me do this system-wide.

Any suggestions would be welcome. Again, I am looking for trackers on
Linux based machines.

推荐答案

dfaber schrieb:
dfaber schrieb:

大家好,

我一直在linux上搜索键盘和鼠标跟踪器。我已经看了/ b $ b读取解决方案(在sourceforge上观看),看看/ proc / interrupts到/ b $ b检查键盘或鼠标活动。我还阅读了一篇文章,其中观看

似乎难以跟踪usb键盘和鼠标。所以,我在这里想出了
的想法。


我的目标是:

1.检查键盘活动。我没有兴趣记录按下哪些键

或记录它们。

2.监控鼠标活动。我想知道指针位置,

左键单击,右键单击,鼠标中键使用。


我知道这些事情都可以完成在GUI环境中。我正在寻找

的一些方法来帮助我在整个系统中进行此操作。


欢迎提出任何建议。再次,我正在寻找基于Linux的机器上的跟踪器。
Hi all,
I have been searching for a keyboard and mouse tracker on linux. I''ve
read solutions (watch at sourceforge) which look at /proc/interrupts to
check keyboard or mouse activity. I also read one post where "watch"
seems to have difficulty tracking usb keyboards and mice. So, I''m out
of ideas here.

My goal are:
1. Check keyboard activity. I''m not interested in logging which keys
are pressed or record them.
2. Monitor mouse activity. I want to know the pointer position,
left-clicks, right-clicks, middle-mouse button usage.

I know that these things can be done in a GUI environment. I am looking
for some approach that helps me do this system-wide.

Any suggestions would be welcome. Again, I am looking for trackers on
Linux based machines.



您可以使用/ dev / input / event *设备。不幸的是,我对docs

的链接已经死了 - 我想lubusb和它的python绑定也可能对你有帮助。


Diez

You could use the /dev/input/event* devices. The link I had for the docs
is unfortunately dead - I guess lubusb and its python binding might help
you, too.

Diez




DiezYou可以使用/ dev / input / event *设备。


在我唯一可用的Linux系统(Mojam的基于CentOS的Web服务器)上,

/ dev / input / *只能由root读取。这似乎不会像对手表这样的工具非常有用,除非他们要运行suid到root

(创建其他问题)。


作为观察的作者,我非常乐意将驱动程序合并到一起。从

其他人进入代码,然而,这些天我很少访问Linux

(桌面上没有人),也没有Windows访问权限。


Skip

DiezYou could use the /dev/input/event* devices.

On the only Linux system I have available (Mojam''s CentOS-based web server),
/dev/input/* are readable only by root. That doesn''t seem like it would be
very useful to tools like watch unless they were to run suid to root
(creating other problems).

As the author of watch, I''m more than happy to incorporate "drivers" from
other people into the code, however, I have very little access to Linux
these days (and none on the desktop) and no Windows access.

Skip


sk ** @ pobox.com schrieb:
sk**@pobox.com schrieb:

DiezYou可以使用/ dev / input / event *设备。


在唯一的Linux系统上我有可用(Mojam的基于CentOS的Web服务器),

/ dev / input / *只能由root读取。这似乎不会像对手表这样的工具非常有用,除非他们要运行suid到root

(创建其他问题)。
DiezYou could use the /dev/input/event* devices.

On the only Linux system I have available (Mojam''s CentOS-based web server),
/dev/input/* are readable only by root. That doesn''t seem like it would be
very useful to tools like watch unless they were to run suid to root
(creating other problems).



你不需要给它root访问权限。对于udev来说,

的简单规则如下:


KERNEL ==" event [0-9] *",NAME ="输入/%k",MODE =" 0444"

将使设备具有全局可读性。虽然我没有想到任何可能具有的安全隐患(并且在这些事情上并不是特别值得知道),但我确信它更少的东西可能会引入任何可利用的漏洞而不是suid root。


Diez

You don''t need to give it root access. A simple rule for the udev that
looks like this:

KERNEL=="event[0-9]*", NAME="input/%k", MODE="0444"
will make the devices world readable. While I haven''t thought about any
security implications that might have (and am not especially
knowledgeable in such things to be honest), I''m convinced it is way less
likely to introduce any exploitable holes than suid root would.

Diez


这篇关于跟踪键盘和鼠标使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆