GithubHelp home page GithubHelp logo

lgravity / keylogger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from giacomolaw/keylogger

0.0 2.0 0.0 73 KB

A simple keylogger for Windows, Linux and Mac

Home Page: https://simple-keylogger.github.io/

License: MIT License

Python 60.23% Makefile 1.47% C 21.21% C++ 17.08%

keylogger's Introduction

A simple keylogger for Windows, Linux and Mac

MIT Licence

Website - Keylogger wiki

Welcome to the simple keylogger repo! A keylogger is a program that records your keystrokes, and this program saves them in a log file on your local computer.

Check out below to learn how to install them. These keyloggers are simple and bare bones, however they work great! Feel free to fork and improve it if you want. Be sure to check out the pull requests to see if your problem has been fixed, or to help out others.

Currently, there are three keylogger programs for the major operating systems; Windows, Mac and Linux.

Looking to make a fix or change on the website? You can find the website repo here.

Contents

Windows

To change visibility of the window set the #define in line 6 to visible or invisible.

Simply compile into an .exe, and then run. Visual Studio is good for this.

  • invisible makes the window of the logger disappear, and it also starts up hidden from view. Note that it is still visible in the task manager.
  • visible is visible, and the window does not close when typing. Great for testing it out.

Both of these save the keystrokes to a .txt file when closed.

Note that sometimes your compiler may through up errors. If it does, keep compiling - the program still works. As always, please create an issue if you have a problem.

Mac

This is a little more complicated. Please note, it does not work for secure areas such as password inputs. I have not found a work around yet.

Installation

Download the repo. It will install in /usr/local/bin/keylogger.

Install it:

$ git clone https://github.com/GiacomoLaw/Keylogger && cd keylogger/mac

$ make && make install

It will log to /var/log/keystroke.log. This may require root access, but you can change that if you want. Set where you want it to log:

$ keylogger ~/logfile.txt

Logging to: /var/log/keystroke.log

Want to make it start on system startup?

$ sudo make startup

That will run it on startup.

Uninstall

$ sudo make uninstall

Will uninstall the program, but not the logs.


Thanks to Casey Scarborough for the base program!

Please note that this logger cannot record keystrokes in protected areas yet.

Linux

Installation

You'll need to install python-xlib if you don't have it.

You can install it using pip:

pip install python-xlib

...or your system package manager:

sudo apt-get install python-xlib

Check that you have git installed, and then run this.

git clone https://github.com/GiacomoLaw/Keylogger

This will clone this entire repo. Find the linux folder, extract it, and open it. Rename the extracted folder to linux-logger Then run this:

giacomo@vostro:~$ cd linux-logger/

Options

There are several options that can be set with environment variables:

  • pylogger_file: File path to use as the log file. Default: ~/Desktop/file.log
  • pylogger_cancel: The key to use as the cancel key, in character form. Default: `
  • pylogger_clean: Whether to clear the file on startup. This can be set to anything to clear the file. Default: No (not set)

Running

You can use Python 2 or 3 to run the logger.

To run it:

$ python keylogger.py
<class 'Xlib.protocol.request.QueryExtension'>
<class 'Xlib.protocol.request.QueryExtension'>
RECORD extension version 1.13

Or, using the options mentioned above:

# This tells the logger to use /home/me/myfile.txt,
# clearing the file on startup, and using ! as the
# cancel key.
# You don't have to use all of these options at once, or any at all.
$ pylogger_file="/home/me/myfile.txt" pylogger_clean=1 pylogger_cancel="!" python keylogger.py

The keylogger is now running! It will log your strokes to the file you specified. Stop it by hitting the cancel key (grave or `, if not set with pylogger_cancel. That's the one under escape on a standard keyboard.)

You can make it run on startup:

$ sudo make startup


Uses

Some uses of a keylogger are:

  • Business Administration: Monitor what employees are doing.
  • School/Institutions: Track keystrokes and log banned words in a file.
  • Personal Control and File Backup: Make sure no one is using your computer when you are away.
  • Parental Control: Track what your children are doing.
  • Self analysis

Feel free to contribute to fix any problems, or to submit an issue!

Please note, this repo is for educational purposes only. No contributors, major or minor, are to fault for any actions done by this program.

Don't really understand licenses or tl;dr? Check out the MIT license summary.

Distributed under the MIT license. See LICENSE for more information.

Giacomo Lawrance โ€“ @GiacomoLaw - Website

keylogger's People

Contributors

cjwelborn avatar diebolo avatar doelia avatar foggalong avatar giacomolaw avatar isivisi avatar itaym120 avatar jesobreira avatar luolong avatar mohan3d avatar waffle-iron avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.