mirror of
https://github.com/caseyscarborough/keylogger.git
synced 2020-11-18 19:53:40 -08:00
Update README.md.
This commit is contained in:
parent
cb98dff131
commit
32858c49a3
23
README.md
23
README.md
@ -4,7 +4,7 @@ This repository holds the code for a simple and easy to use keylogger for Mac OS
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Start by cloning the repository and running the proper make commands, shown below. By default, the application installs to `/usr/local/bin/keylogger`.
|
Start by cloning the repository and running the proper make commands, shown below. By default, the application installs to `/usr/local/bin/keylogger`, which can easily be changed in the [`Makefile`](https://github.com/caseyscarborough/keylogger/blob/master/Makefile). `make install` may require root access.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git clone https://github.com/caseyscarborough/keylogger && cd keylogger
|
$ git clone https://github.com/caseyscarborough/keylogger && cd keylogger
|
||||||
@ -14,22 +14,35 @@ $ 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`](https://github.com/caseyscarborough/keylogger/blob/master/keylogger.h#L12) if necessary.
|
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`](https://github.com/caseyscarborough/keylogger/blob/master/keylogger.h#L12) if necessary.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo keylogger
|
$ keylogger
|
||||||
Logging to: /var/log/keystroke.log
|
Logging to: /var/log/keystroke.log
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you'd like the application to run on startup, run the `startup` make target:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo make startup
|
||||||
|
```
|
||||||
|
|
||||||
|
## Uninstallation
|
||||||
|
|
||||||
|
You can completely remove the application from your system (including the startup daemon) by running the following command (logs will not be deleted):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo make uninstall
|
||||||
|
```
|
||||||
|
|
||||||
### Optional Parameters
|
### 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:
|
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:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Clear the logfile.
|
# Clear the logfile.
|
||||||
$ sudo keylogger clear
|
$ keylogger clear
|
||||||
Logfile cleared.
|
Logfile cleared.
|
||||||
Logging to: /var/log/keystroke.log
|
|
||||||
|
|
||||||
# Specify a logfile location.
|
# Specify a logfile location.
|
||||||
$ sudo keylogger ~/logfile.txt
|
$ keylogger ~/logfile.txt
|
||||||
Logging to: /Users/Casey/logfile.txt
|
Logging to: /Users/Casey/logfile.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user