Skip to content
A port of the logkeys project from C++ to Golang. A linux keylogger now written in Go.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore fixed the device issue and added README Oct 30, 2015
inputevents_linux.go changed the filenames to reflect their platform Oct 30, 2015
main.go added ability to daemonize Oct 30, 2015


A port of the C++ keylogger to Golang using the /dev/input/event* devices to read key presses outside of X11. My next goal is to combine with an X11 method of grabbing keystrokes in case we don't have root privileges.

Example Usage

LogKeys( os.Stdout )

That's it! I tried to comment the code as best I could since it was a learning experience for me, hopefully it's useful to others as well.


This is FREE SOFTWARE with absolutely NO WARRANTY of any kind. Feel free to copy, fork, or use the code how you like.

You can’t perform that action at this time.