The keylooger takes a screenshot and saves it to a directory every 30 seconds using the pyautogui module. The function schedules the next screenshot using the threading.Timer class, just like before. at caputures every keyskrokes and saves them to a text file, and later send the txt file to any email address you specify.
First, install the required modules:
- PIL (pillow)
- pynput
pip3 install pillow
pip3 install pynput
python keycap.py
pyinstaller --onefile keycap.py