Remember to check Enable access for assitive devices in the Universal Access preferences panel. You may need root priviledge when writting to /var/log/. By default, the keystrokes would be logged in /var/log/keystroke.log. Then drop the Launchd script to /System/Library/LaunchDaemons to fire up this keylogger on startup. Usageīuild the code and deploy it to /usr/local/sbin/.
However, keystrokes are highly sensitive information and I don't trust those softwares in the wild.īeing a programmer, simply write one by myself. He asked how many keystrokes I perform everyday, and I totally had no idea. My friend and I were discussing about the Carpal Tunnel Syndrome. Please do not ever take this project for any evil purpose. The source code is awfully dirty, but it works for me and that's enough. This is a very simple keylogger for self-quantifying.