1
0
mirror of https://github.com/caseyscarborough/keylogger.git synced 2020-11-18 19:53:40 -08:00
2013-09-17 10:54:45 -04:00
2013-09-16 19:30:30 -04:00
2013-09-16 22:57:03 -04:00
2013-09-16 21:21:27 -04:00
2013-09-17 09:22:50 -04:00

Mac OS X Keylogger

This repository holds the code for a simple and easy to use keylogger for Mac OS X. It is not meant to be malicious, and is written as a proof of concept. There is not a lot of information on keyloggers or implementing them on Mac OS X, and most of the ones I've seen do not work as indicated. This project aims to be a simple implementation on how it can be accomplished on OS X.

Usage

Start by cloning the repository and running the proper make commands, shown below. By default, the application installs to /usr/local/bin/keylogger.

$ git clone https://github.com/caseyscarborough/keylogger && cd keylogger
$ make && make install

The application by default logs to /var/log/keystroke.log, which may require root access depending on your system's permissions. You can change this in keylogger.h if necessary.

$ sudo keylogger
Logging to: /var/log/keystroke.log

Optional Parameters

You can pass in two optional parameters to the program. The clear option will clear the logs at the default location. Any other argument passed in will be used as the path to the log file for that process. See below:

# Clear the logfile.
$ sudo keylogger clear
Logfile cleared.
Logging to: /var/log/keystroke.log

# Specify a logfile location.
$ sudo keylogger ~/logfile.txt
Logging to: /Users/Casey/logfile.txt

Contributing

Feel free to fork the project and submit a pull request with your changes!

Description
No description provided
Readme 48 KiB
Languages
C 93.8%
Makefile 6.2%