I create a python script to write the keys that I click on my system (keylogger) and call home with information about what are my typical habits. I am new to python and I use this app to find out about this. I am using python-3.x and windows 8
The full source code can be found here https://github.com/funvill/QSMonitor/blob/master/monitor.py
Using this snippet, I can record all clicks on my entire system. The problem is that when I [ctrl] + [c] copy something to another window, python code crashes.
Playback Steps
- Run monitor.py script
- In another window (notepad.exe), enter a few letters (abcd).
- Highlight the letters in the notebook and hold [ctrl] and press [c]
Experienced:
A Windows error message will appear and tell me that python.exe is stopping and needs to be restarted. There was no python error message in the command window.
def OnKeyboardEvent(event): global keyDatabase global keyLoggerCount keyLoggerCount += 1
My question is:
- What can cause this crash when copying and the past?
source share