osx-keylogger v1.0.6
POC Keylogger for Mac OS X 10.5+
Introduction
By using native bindings to IOKit we can talk directly with the keyboard. Unfortunately this means we have to provide our own key layouts but since we can talk directly with the hardware this should work regardless of which state the rest of the system is in.
Usage example
{{example.js}} This example uses the swedish.json file as the key layout and will write the users input to stdout.
makeKeylayout.js
By running the command
node makeKeylayout.js yourlanguage.json
And then using the console you are running it in to read what keys are pressed you can create your own language key layout. In this case it would create yourlanguage.json
Installation
via npm
npm install osx-keylogger
Tests
Sorry, I didn't feel like it. It's a POC
Why?
I couldn't find a decent opensource keylogger for a modern version of OS X and I was looking for an excuse to try out native bindings.
License
MIT, see LICENSE file