This project includes two main scripts:
keylogger.py: A keylogger that installs dependencies and logs keystrokes.keylogger_scanner.py: A scanner that checks for keyloggers running in the background and includes a front-end interactive GUI.
Note: Please ensure you have explicit permission from the user before running any keylogging software. Unauthorized use of keyloggers is illegal and unethical.
- Python 3 installed on the system.
- Required Python libraries:
psutilpynputtkinter
This script installs the necessary dependencies and logs keystrokes in the background.
- Save the Script: Save the script as
keylogger.py. - Run the Script:
python keylogger.py
- Background Execution: To run the script in the background:
- Windows:
start /B python keylogger.py
- macOS and Linux:
nohup python keylogger.py &
- Windows:
The keystrokes will be logged to keylogger.log in the same directory as the script.
This script scans for potential keyloggers running in the background and displays the results in a GUI.
- Save the Script: Save the script as
keylogger_scanner.py. - Install Dependencies:
pip install -r requirements.txt
- Run the Script:
python keylogger_scanner.py
This will open the GUI and start scanning for potential keyloggers in the background. The detections will be displayed in the GUI and logged to detections.log.
This script installs the dependencies, runs the keylogger in the background, and starts the keylogger scanner with the GUI.
- Make the Script Executable:
chmod +x run_keylogger.sh
- Run the Script:
./run_keylogger.sh
List the following dependencies in your requirements.txt:
psutil
pynput
tkinter
Ensure you have explicit permission from the user before running any keylogging software. Unauthorized use of keyloggers is illegal and unethical. Be aware of the legal implications and ensure compliance with local laws and regulations.