Skip to content

This project implements a keylogger in Python, which logs all keystrokes to a file and periodically sends the log file to a web server.

Notifications You must be signed in to change notification settings

OmriYaakov/KeyLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Keylogger Project

Overview

This project implements a keylogger in Python, (The keylogger runs in the background without displaying a console window) which logs all keystrokes to a file and periodically sends the log file to a web server.

Prerequisites

  • Python 3.x
  • pynput library
  • requests library
  • flask library (for the server)

Installation

  1. Clone the repository or download the source code.

  2. Install the required Python libraries:

    pip install pynput requests flask

Keylogger Script

  1. Save the keylogger script as keylogger.py:

  2. Modify the server URL: Replace 'http://your-server-ip:5000/upload' with the actual URL of your web server.

  3. Convert the script to an EXE using PyInstaller: -> In CMD

    pyinstaller --onefile --noconsole keylogger.py
    

it will create EXE file.

Flask Web Server

  1. Save the server script as server.py:

  2. Run the Flask web server:

    python server.py

Usage

  1. Run the web server (server.py) on a machine with a static IP or domain name.

  2. Run the keylogger executable (keylogger.exe) on the target machine.

The keylogger will log all keystrokes to a file named keylog.txt in a hidden directory in the user's home directory. Every hour, the log file will be sent to the web server.

Ethical and Legal Considerations

  • Explicit Permission: Always ensure you have explicit permission from the owner of the computer before running a keylogger.
  • Privacy: Respect privacy and inform users about what you are doing.
  • Legal Boundaries: Be aware of and comply with local laws regarding keylogging and monitoring software.

Use this knowledge responsibly and within legal boundaries.

About

This project implements a keylogger in Python, which logs all keystrokes to a file and periodically sends the log file to a web server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages