Git Product home page Git Product logo

key-logger's Introduction

Key-Logger

This Python script is a simple keylogger designed to record keystrokes and save them into a log file.

For Linux

It utilizes the pyxhook library to monitor keyboard events.

Features

  • Records all key presses except for special keys such as Cancel, Backspace, Shift, Alt, and Control keys.
  • Writes the recorded keystrokes into a log file (file.log by default) on the desktop.
  • Clears the log file each time the script is executed.
  • Special keys like Backspace, Shift, Alt, and Control are logged as <backspace>, <shift>, <alt>, and <control> respectively.

Prerequisites

  • Python 3.x installed on your system.
  • pyxhook library installed. You can install it using pip:
    pip install pyxhook
    

Usage

  1. Save the provided Python script (Key-Logger.py) on your system.
  2. Open a terminal or command prompt and navigate to the directory containing the script.
  3. Run the script using Python:
    python keylogger.py
    
  4. The keylogger will start running silently in the background.
  5. To stop the keylogger, press the cancel key (default is the backtick/backquote key `).

Customization

  • Log File Path: You can change the path of the log file by modifying the log_file variable in the script.
  • Cancel Key: You can change the cancel key by modifying the cancel_key variable in the script. By default, it's set to the backtick/backquote key (`).

For Windows

Features

  • Hides console window during execution.
  • Logs keystrokes to a specified file.
  • Includes a kill switch to stop the keylogging process.

Requirements

  • Python 3.x
  • pynput
  • pywin32

Installation

  1. Clone the repository:

    git clone https://github.com/md-dildar-mandal/Key-Logger.git
    
  2. Navigate to the project directory:

    cd Key-Logger/Windows
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    

Usage

  1. Run the keylogger script:

    python w_main.py
    
  2. To stop the keylogging process, press the Escape key.

Configuration

  • You can modify the log file path by changing the log_file variable in the w_main.py script.

Security and Privacy

  • Warning: Please use this script responsibly and only on your own devices. Keyloggers can be considered intrusive and unethical if used without consent.
  • Privacy: Ensure that you have the necessary permissions to monitor keystrokes on the target system. Respecting privacy laws and obtaining consent from users is essential.

Disclaimer

This script is provided for educational purposes only. The author assumes no liability and is not responsible for any misuse or damage caused by this script. Use it at your own risk.

For any questions or concerns, please feel free to contact the author.


Note: Remember to adhere to legal and ethical guidelines when using this or any other monitoring tool. Always respect individuals' privacy and obtain proper authorization before deploying such software.

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.