How debang5hu/keylogger works
This repository contains separate Linux and Windows Python agents that record keyboard input and clipboard contents, save them locally, and periodically send the log to Telegram. Each platform’s entry point starts capture and upload concurrently. The Linux agent additionally daemonizes and installs a cron startup entry; the Windows agent hides a newly created log file. Relationships below are based on the sampled source and README; external keyboard, clipboard, and Telegram services are represented at a high level.
Main entry points: Linux/keylogger.py Input capture · Windows/keylogger.py Input capture
Components 11
Linux agent
- Linux entry point
Linux/keylogger.py - Input capture
Linux/keylogger.py - Local log
Linux/keylogger.py - Periodic uploader
Linux/keylogger.py - Startup persistence
Linux/keylogger.py
Windows agent
- Windows entry point
Windows/keylogger.py - Input capture
Windows/keylogger.py - Local log
Windows/keylogger.py - Periodic uploader
Windows/keylogger.py
Other components
- Keyboard and clipboard
- Telegram API
Connections 15
- Linux entry point → Startup persistence: installs startup
Linux/keylogger.py - Linux entry point → Input capture: starts thread
Linux/keylogger.py - Linux entry point → Periodic uploader: starts thread
Linux/keylogger.py - Keyboard and clipboard → Input capture: delivers input
Linux/keylogger.py - Input capture → Local log: writes events
Linux/keylogger.py - Periodic uploader → Local log: reads file
Linux/keylogger.py - Periodic uploader → Telegram API: uploads log
Linux/keylogger.py - Input capture → Telegram API: sends alerts
Linux/keylogger.py - Windows entry point → Input capture: starts thread
Windows/keylogger.py - Windows entry point → Periodic uploader: starts thread
Windows/keylogger.py - Keyboard and clipboard → Input capture: delivers input
Windows/keylogger.py - Input capture → Local log: writes events
Windows/keylogger.py - Periodic uploader → Local log: reads file
Windows/keylogger.py - Periodic uploader → Telegram API: uploads log
Windows/keylogger.py - Input capture → Telegram API: sends alerts
Windows/keylogger.py