Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess
- wifi = input("Nazwa: ")
- results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', wifi, 'key=clear']).decode('utf-8').split('\n')
- #print('netsh'+" "+ 'wlan'+" "+ 'show'+" "+ 'profile'+" "+ wifi+" "+ 'key=clear')
- results = [line.split(':')[1][1:-1] for line in results if "Key Content" in line]
- print(results[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement