Trevent is a Python-based lightweight keylogger and exfiltration tool designed for cybersecurity research and educational purposes.
-
System-wide Key Logging
Captures keystrokes from your keyboard on a Linux system. -
In-Memory Log Storage
Stores logs temporarily in memory (not on the hard drive) to avoid leaving traces. -
Stealthy Operation
Runs quietly in the background, making it hard to notice. -
Telegram Exfiltration
Sends the captured logs to a Telegram chat securely. -
Auto-Cleanup
Deletes the log file after it's successfully sent, leaving no trace behind.
git clone https://github.com/5odead/Trevent.git
cd Trevent
💡 Note:
Set
KEYBOARD_DEVICE
to your actual keyboard event number, or the logger won't capture anything.Update
CHAT_ID
andBOT_TOKEN
in your exfiltration script, or the data won't get sent.
python3 Keylogger.py
python3 Exfiltration.py
⚠️ Disclaimer:
This tool is intended for educational purposes only. It should only be used in controlled environments with explicit permission. Unauthorized use is illegal and unethical.