https://github.com/cyrus-and/xkeylogger
Rootless keylogger for X
https://github.com/cyrus-and/xkeylogger
keylogger linux rootless xorg
Last synced: about 1 year ago
JSON representation
Rootless keylogger for X
- Host: GitHub
- URL: https://github.com/cyrus-and/xkeylogger
- Owner: cyrus-and
- Created: 2012-07-09T16:16:04.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T00:04:21.000Z (over 6 years ago)
- Last Synced: 2025-04-30T06:44:28.904Z (about 1 year ago)
- Topics: keylogger, linux, rootless, xorg
- Language: C
- Homepage:
- Size: 44.9 KB
- Stars: 34
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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⏎
```