August 7, 2020 at 4:49 pm
#43803
sultand
Participant
Dear Diego,
When I run the script without trying to make it persistent it works fine but when I follow the lecture where Zain make a backdoor persistent it not working, I am getting the error code when I run the script:
Traceback (most recent call last):
File “zlogger.py”, line 4, in <module>
my_keylogger = keylogger.Keylogger(12, “[email protected]”, “……..”)
File “/root/PycharmProjects/keylogger/keylogger.py”, line 13, in __init__
self.become_persistent()
File “/root/PycharmProjects/keylogger/keylogger.py”, line 20, in become_persistent
evil_file_location = os.environ[“appdata”] + “\\Windows Explorer.exe”
File “/usr/lib/python2.7/UserDict.py”, line 40, in __getitem__
raise KeyError(key)
KeyError: ‘appdata’