Tzafrir Cohen wrote:

On Sun, Aug 01, 2004 at 09:08:58AM +0300, [EMAIL PROTECTED] wrote:


It's been a while since I last touched this but I suspect you'd have
to have an invisible window on top of the entire display to catch
all events and pass them on. I think this is the way spyware for X11
used to be done.



So you basically suggest that I either have to be quite intrusive or paÃch the window manager, right?



If I remember correctly then when you tell Xlib which events your window is interested in then
you can specify that these events shouldn't stop at your window but passed on to windows behind
it on the "stack", that way you can sniff everything that passes through without hurting any other X
client. For instance, I think this is the reason it's advisable (or used to be advisable at least back when
host-based access control was used) for security-concience programs to grab focus when reading
passwords in order to make it harder on sniffer programs to tag-along on the events this way (I never
dug this path, I just wrote "regular" Xlib programs, so I'm not sure).


(What do you mean by "paÃch"? As in "illegal hunting"? I couldn't find this word in my dictionaries).

--Amos



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to