Practical No.
09[03-01-2024]
AIM - Create a Simple KeyLogger using Python.
1. Open Command Prompt, Install pynput using “pip install pynput”⟶
2. Create an folder in Desktop name as “EH” 🡪
3. Go to “\Desktop\EH” → Create 2 Files as “keylog.py” & “key_log.txt” →
4. Python Code (keylog.py) →
Roll no - 46 [B2]
5. RUN ”keylog.py” → Windows Defender may detect the program as
VIRUS, “Action Options: Allow on device” →
6. RUN ”keylog.py” → Type Random Keys → CHECK “key_log.txt” →
OUTPUT :
Roll no - 46 [B2]