Advertisement
LolPenguinOwO

gdfgfd

Nov 24th, 2023
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. import subprocess
  2. import pyfiglet
  3. import colorama
  4. from colorama import init
  5. from colorama import Fore, Back, Style
  6.  
  7. init()
  8.  
  9. ascii_banner = pyfiglet.figlet_format("TTheHolyOne")
  10. ascii_banner1 = pyfiglet.figlet_format("github.com/ttheholyone", font = 'straight')
  11. ascii_banner2 = pyfiglet.figlet_format("www.ttheholyone.com", font = 'rectangles')
  12. print('')
  13. print(Fore.RED + ascii_banner.lower())
  14. print(Fore.BLUE + ascii_banner2.lower())
  15. print(Fore.BLUE + ascii_banner1.lower())
  16. print(Fore.RED + 'WIFI PASSWORD GRABBER')
  17. input()
  18.  
  19. data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8', errors="backslashreplace").split('\n')
  20. profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i]
  21. for i in profiles:
  22. try:
  23. results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', i, 'key=clear']).decode('utf-8', errors="backslashreplace").split('\n')
  24. results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b]
  25. try:
  26. print ("{:<30}| {:<}".format(i, results[0]))
  27. except IndexError:
  28. print ("{:<30}| {:<}".format(i, ""))
  29. except subprocess.CalledProcessError:
  30. print ("{:<30}| {:<}".format(i, "ENCODING ERROR"))
  31. input("")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement