Skip to content

pratieeek/Keylogging-Using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Python Keylogger πŸ–₯️

A lightweight Python-based keylogger that captures and records keyboard inputs. This project demonstrates how to use Python's pynput library to monitor keyboard events and log them into a text file.


πŸš€ Features

  • Keystroke Logging: Captures and logs all keystrokes, including alphanumeric and special keys.
  • Special Key Support: Handles and logs keys like Space, Enter, and Backspace in a readable format.
  • File-Based Logging: Saves all logged keystrokes into a text file (keylog.txt) for analysis.
  • Simple and Lightweight: Minimal dependencies and straightforward to use.

πŸ“¦ Installation

  1. Clone the Repository:
    git clone https://github.com/<your-username>/python-keylogger.git
    cd python-keylogger
    
    

βš™οΈ How It Works The script listens for all keyboard events using the pynput library. Each keystroke is logged and written to a file named keylog.txt. Special keys (e.g., Enter, Space, Backspace) are logged with descriptive names to maintain readability. πŸ“ Usage Examples Educational: Learn how to implement keylogging and understand event-listening in Python. System Monitoring: Monitor keyboard activity for personal systems (with explicit consent). πŸ“– Legal Disclaimer This project is intended for educational purposes only. Unauthorized use of keylogging tools is illegal and unethical. Ensure you have explicit consent before using this software on any system. Misuse of this project may result in severe legal consequences. Use responsibly.

🀝 Contributions Contributions are welcome! If you'd like to improve or extend the functionality:

Fork the repository. Create a new branch. Submit a pull request with your changes.

README.md markdown Copy Edit

Python Keylogger πŸ–₯️

A lightweight Python-based keylogger that captures and records keyboard inputs. This project demonstrates how to use Python's pynput library to monitor keyboard events and log them into a text file.


πŸš€ Features

  • Keystroke Logging: Captures and logs all keystrokes, including alphanumeric and special keys.
  • Special Key Support: Handles and logs keys like Space, Enter, and Backspace in a readable format.
  • File-Based Logging: Saves all logged keystrokes into a text file (keylog.txt) for analysis.
  • Simple and Lightweight: Minimal dependencies and straightforward to use.

πŸ“¦ Installation

  1. Clone the Repository:
    git clone https://github.com/<your-username>/python-keylogger.git
    cd python-keylogger

Install Dependencies: Ensure Python 3 is installed. Install the required library:

bash Copy Edit pip install pynput Run the Keylogger: Execute the script:

bash Copy Edit python keylogger.py βš™οΈ How It Works The script listens for all keyboard events using the pynput library. Each keystroke is logged and written to a file named keylog.txt. Special keys (e.g., Enter, Space, Backspace) are logged with descriptive names to maintain readability. πŸ“ Usage Examples Educational: Learn how to implement keylogging and understand event-listening in Python. System Monitoring: Monitor keyboard activity for personal systems (with explicit consent). πŸ“– Legal Disclaimer This project is intended for educational purposes only. Unauthorized use of keylogging tools is illegal and unethical. Ensure you have explicit consent before using this software on any system. Misuse of this project may result in severe legal consequences. Use responsibly.

🀝 Contributions Contributions are welcome! If you'd like to improve or extend the functionality:

Fork the repository. Create a new branch. Submit a pull request with your changes. πŸ“œ License This project is licensed under the MIT License. See the LICENSE file for details.

🌟 Acknowledgments Special thanks to the creators of the pynput library for making keyboard event monitoring in Python simple and efficient.

About

This repository contains a simple Python-based keylogger that captures and records keyboard inputs. It demonstrates how to monitor keystrokes using Python's pynput library. The keylogger writes the captured keystrokes to a text file for analysis or review

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages