Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43646
    sultand
    Participant

    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

    #43655
    Diego PérezDiego Pérez
    Participant

    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

    #43687
    sultand
    Participant

    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’)

    #43708
    Diego PérezDiego Pérez
    Participant

    Hi!
    Yeah, then it’s normal. Just continue with the lectures and that issue will be addressed later on.

    Greetings!
    Diego

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Privacy Overview
ZSecurity logo featuring a stylized red letter Z

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

3rd Party Cookies

This website uses Google Analytics and Linkedin to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping these cookies enabled helps us to improve our website.