- This topic has 3 replies, 2 voices, and was last updated 5 years, 4 months ago by .
- You must be logged in to reply to this topic.
File “keylogger1.py”, line 8, in process_key_press
log = log + str(key.char)
AttributeError: ‘Key’ object has no attribute ‘char’
Link:
https://postimg.cc/PPjytW12
https://postimg.cc/DSCPdRHM
Hi!
Did you get this error just by starting the keylogger or when you press a specific key? Did you successfullt install pynput?
Let me know.
Diego
Dear Diego,
Yes I installed pynput successfully.
When I start the keylogger it works fine because I can type and see the alphabet displayed on terminal but once I click any special key like SPACE, CAP TAB etc it quits the keylogger program and gives me the error message below
(File “keylogger1.py”, line 8, in process_key_press
log = log + str(key.char)
AttributeError: ‘Key’ object has no attribute ‘char’)
Hi!
Yeah, then it’s normal. Just continue with the lectures and that issue will be addressed later on.
Greetings!
Diego
Not a member yet? Register now
Are you a member? Login now
Enroll in this course to access this lesson!
All of our courses include:
✔ Lifetime, unlimited access to course materials & training videos.
✔ Verifiable certificate of completion from zSecurity, signed by the course instructor, Zaid.
✔ Get answers from our Support Team within a maximum of 15 hours.
✔ Unlimited Updates.
Get free 1 month VIP membership per course with:
✔ Live mentorship and Q&A session with the course instructor, Zaid.
✔ Instant support from community members through our private discord channel.
✔ Daily updates with the latest tutorials & news in the hacking world.
✔ Daily resources like CTFs, bug bounty programs, onion services and more!
✔ Access our VIP community & connect with like-minded people.
✔ Discounts on other zSecurity products and services.