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
import subprocess | |
a = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8', errors="ignore").split('\n') | |
a = [i.split(":")[1][1:-1] for i in a if "All User Profile" in i] | |
for i in a: | |
try: | |
results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', i, 'key=clear']).decode('utf-8', errors="ignore").split('\n') | |
results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b] | |
try: | |
print ("{:<30}| {:<}".format(i, results[0])) |
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
import os | |
import errno | |
folder_to_scan_and_delete = "C:/Users/Owner/Desktop/Folder Simulation/" # Remember '/' not '\', also make sure to end with '/' | |
show_ignored = True | |
show_deleted = True | |
deleted = 0 | |
for root, dirs, files in os.walk(folder_to_scan_and_delete, topdown=False): | |
for name in dirs: |
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.mouse import Listener | |
import logging | |
log_dir = "" | |
logging.basicConfig(filename=(log_dir + "mouse_log.txt"), level=logging.DEBUG, format='["%(asctime)s", %(message)s]') | |
def on_click(x, y, button, pressed): | |
if pressed: |
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)) |
NewerOlder