This repository contains a set of scripts for capturing keyboard input on Linux and Windows systems. The purpose of these scripts is to demonstrate how a basic keylogger can be implemented in different environments.
URL = Click here
- capture_victim.py and server_host.py: Core Python scripts for capturing keyboard input. Compatible with graphical and terminal environments.
- requirements.sh: Script to install the necessary dependencies to run the Python script.
The requirements.sh
script is responsible for installing the necessary libraries to run the Python
script. Make sure you run this script with root
privileges.
Instructions to run requirements.sh
:
git clone https://github.com/D1se0/keylogger_script.git
cd keylogger_script
chmod +x requirements.sh
sudo ./requirements.sh
This script will install pynput
, keyboard
, and colorama
, which are necessary for the Python
script to function.
This script receives the keycaps by the capture_victim.py
script.
Available for graphical and terminal environment.
This script captures keyboard input and sends it to a specified server. Depending on the environment, you can use different libraries to capture the inputs:
Graphical Environment: Use pynput
.
Terminal Environment: Use keyboard
.
Make sure all dependencies are installed (see Installation Requirements).
Edit capture_victim.py
and server_host.py
to define the IP address and port of the server to which keystrokes and inputs will be sent.
python3 server_host.py
python3 capture_victim.py
##ReverseShell
Also, apart from providing the keyboard captures, a reverse shell is created with the system of the victim machine using a msfvenom
that we will have to configure according to the settings of the scripts.
We will have to load the multi/handler
module into metasploit and configure it to listen.
This script is provided for educational purposes. Using a keylogger without the user's explicit permission is illegal and ethically wrong. Make sure you always have proper authorization before running or distributing keylogging software.
Contributions are welcome. If you want to improve the script or add new features, feel free to make a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
Para cualquier pregunta o comentario, por favor contacta a ciberseguridad12345@gmail.com
.
¡Gracias por utilizar el repositorio Keylogger Script
!