Rootless keylogger for X.
-
No root access required.
-
Keep track of the focused window and print its name too.
-
Translate raw keystrokes according to the current keyboard layout.
-
Allow to generate a statically linked executable.
-
Also log some useful non-printable keystrokes (backspace, tab, etc.).
-
Use the modifiers to write the proper glyph.
apt-get install libxi-dev
To build a dynamically linked executable:
make
To build a statically linked executable:
make static
Dump keystrokes to a file (exit by killing the process):
xkeylogger > key.log
[+] 06/09/2012 @ 16:44:17 : urxvt
cd /tm⇥⏎
ls⏎
mkdit⌫r test⏎
[+] 06/09/2012 @ 16:44:56 : cyrus-and/xkeylogger - Google Chrome
foo⏎
[+] 06/09/2012 @ 16:45:06 : Search · foo - Google Chrome
⌫⌫⌫bar←⌫⌦az⏎
[+] 06/09/2012 @ 16:45:28 : Search · baz - Google Chrome
⌫⌫⌫
[+] 06/09/2012 @ 16:45:33 : Google - Google Chrome
xkeylogger⏎