Back to rankings

GiacomoLaw/Keylogger

C++simple-keylogger.github.io

A simple keylogger for Windows, Linux and Mac

keyloggerwindowslinuxmacpentestinghacking
Star Growth
Stars
2.4k
Forks
663
Weekly Growth
Issues
22
1k2k
Nov 2016Jan 2020Apr 2023Jul 2026
README

A simple keylogger for Windows, Linux and Mac

MIT Licence

Website - Keylogger wiki

Help support the project:

Buy Me A Coffee

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 issues or 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

Or, view the README.md file in each programs folder for more up to date information.

Windows

To change visibility of the window set the #define in line 13 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 throw up errors. If it does, keep compiling - the program still works. Please check issues and discussions if you have a problem.

@mydarkthawts has an excellent comment with a guide and a video on how to compile this here.

Mac

See Casey Scarborough.

Linux

Usage

  pip install -r requirements. txt
  keylogger.py

How to run it

By running nohup python3 keylogger.py & command, it'll start to log your strokes: The meaning of nohup is ‘no hangup‘. When nohup command use with ‘&’ then it doesn’t return to shell command prompt after running the command in the background.

$~/Keylogger/linux$ nohup python3 keylogger.py &
[1] 12529 //this is the keylogger's PID (process ID)
$:~/Keylogger/linux$ fg

The Keylogger is now running! It will log your strokes to a file . Stop it by typing the command fg then hitting CTRL+C

or

kill {PID} for example kill 12529



Uses

Some uses of a keylogger are:

  • Personal Control and File Backup: Make sure no one is using your computer when you are away.
  • 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.

Related repositories
nathanlopez/Stitch

Python Remote Administration Tool (RAT)

PythonPyPIOthermac-osxlinux
nathanlopez.github.io/Stitch/
3.6k709
aydinnyunus/Keylogger

Get Keyboard,Mouse,ScreenShot,Microphone Inputs from Target Computer and Send to your Mail.

PythonPyPIApache License 2.0keyloggerkeylogging
2.8k548
mategol/PySilon

Advanced RAT written in Python language, fully controllable through Discord with dedicated GUI builder to make preparation easier.

PythonPyPIMIT Licensepython-ratrat
1.3k206
MinhasKamal/TrojanCockroach

A Stealthy Trojan Spyware

C++MIT Licensespywarevirus
1.2k280
alvin-tosh/Malware-Exhibit

🚀🚀 This is a 🎇🔥 REAL WORLD🔥 🎇 Malware Collection I have Compiled & analysed by researchers🔥 to understand more about Malware threats😈, analysis and mitigation🧐.

AssemblyMIT Licensecryptographycybersecurity
1.2k196
4w4k3/BeeLogger

Generate Gmail Emailing Keyloggers to Windows.

PythonPyPIBSD 3-Clause "New" or "Revised" Licensepythonkeylogger
1.2k337
SkrewEverything/Swift-Keylogger

Keylogger for mac written in Swift using HID

SwiftMIT Licensekeyloggerswift
1.2k106
luantak/ToRat

ToRat is a Remote Administation tool written in Go using Tor as a transport mechanism and RPC for communication

GoGo ModulesThe Unlicenseremote-admin-tooltor
lu4p.github.io/ToRat
1k194
ajayrandhawa/Keylogger

Keylogger is 100% invisible keylogger not only for users, but also undetectable by antivirus software. keylogger Monitors all keystokes, Mouse clicks. It has a seperate process which continues capture system screenshot and send to ftp server in given time.

C++clientvisual
1k207
lu4p/ToRat

ToRat is a Remote Administation tool written in Go using Tor as a transport mechanism and RPC for communication

GoGo Modulesremote-admin-tooltor
lu4p.github.io/ToRat
986199