Skip to content

cyrus-and/xkeylogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xkeylogger

Rootless keylogger for X.

Features

  • 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.

Dependencies

apt-get install libxi-dev

Build

To build a dynamically linked executable:

make

To build a statically linked executable:

make static

Usage

Dump keystrokes to a file (exit by killing the process):

xkeylogger > key.log

Sample output

[+] 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⏎

Releases

No releases published

Packages

No packages published