{"repo":"SagarBiswas-MultiHAT/A-Pythonic-Keylogger","free":true,"listed":false,"github":"https://github.com/SagarBiswas-MultiHAT/A-Pythonic-Keylogger","clone":"git clone https://github.com/SagarBiswas-MultiHAT/A-Pythonic-Keylogger.git","description":"Lightweight Python keylogger featuring real-time keystroke interception, instant file backup, and automated SMTP email dispatch with 3x retry logic. Includes ESC-key log sanitization and dual OS autostart persistence guides for Linux systemd and Windows.","language":"Python","stars":24,"topics":["keylogger","ethical-hacking","python","automation","cybersecurity","educational-projects","keystroke-logger","penetration-testing","pynput","python3"],"license":null,"category":"security-tools","readme_excerpt":"Keylogger Script Educational / authorized-use notice: This project demonstrates keyboard event capture, local buffering, and email delivery in Python. Run it only on systems you own or have explicit permission to test. This repository contains a Python-based keylogger script that records keystrokes to a local file and can send the collected log by email. It includes retry handling for email delivery, local log management, and startup examples for Linux and Windows. &nbsp; &nbsp; &nbsp; &nbsp; Architecture Overview Read this diagram from top to bottom. It follows the same layers used by keylogger.py : launch, imports and global state, main() , key capture, Esc detection, email sending, and cleanup/restart. --- Function Map Function Plain-language role Technical behavior --- --- --- main() Starts the program and keeps it running Loads keylog.txt if present, starts a Listener , waits for it to stop, sleeps 5 seconds, then starts another listener on press(key) Records each key press Adds printable characters or special-key names to log content , then appends the current full buffer to keylog.txt on release(key) Watches for the session-ending key When Esc is released, calls send email() , clears memory and file logs, and returns False to stop the current listener send email(log content) Sends the captured text by email Builds a MIME email, connects to SMTP with STARTTLS, logs in, sends the message, and retries up to 3 times Important Design Notes - Esc ends the current listener se","default_branch":null,"files":null,"tree":[],"storefront":"/r/SagarBiswas-MultiHAT","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SagarBiswas-MultiHAT/A-Pythonic-Keylogger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}