Advertisement
Quzziz

Untitled

Apr 11th, 2021
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import subprocess
  2.  
  3. wifi = input("Nazwa: ")
  4. results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', wifi, 'key=clear']).decode('utf-8').split('\n')
  5. #print('netsh'+" "+ 'wlan'+" "+ 'show'+" "+ 'profile'+" "+ wifi+" "+ 'key=clear')
  6. results = [line.split(':')[1][1:-1] for line in results if "Key Content" in line]
  7.  
  8. print(results[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement