Advertisement
Guest User

WiFi password revealer.py

a guest
Sep 19th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. import subprocess
  2. import hashlib
  3. import getpass
  4. import os
  5. import ctypes
  6. ctypes.windll.kernel32.SetConsoleTitleW("WiFi password revealer - Nil5959")
  7. def cls():
  8. os.system('cls' if os.name=='nt' else 'clear')
  9.  
  10. art = """
  11. /$$ /$$ /$$ /$$$$$$$$ /$$ /$$$$$$$$ /$$
  12. | $$ /$ | $$|__/| $$_____/|__/ |__ $$__/ | $$
  13. | $$ /$$$| $$ /$$| $$ /$$ | $$ /$$$$$$ /$$$$$$ | $$
  14. | $$/$$ $$ $$| $$| $$$$$ | $$ | $$ /$$__ $$ /$$__ $$| $$
  15. | $$$$_ $$$$| $$| $$__/ | $$ | $$| $$ \ $$| $$ \ $$| $$
  16. | $$$/ \ $$$| $$| $$ | $$ | $$| $$ | $$| $$ | $$| $$
  17. | $$/ \ $$| $$| $$ | $$ | $$| $$$$$$/| $$$$$$/| $$
  18. |__/ \__/|__/|__/ |__/ |__/ \______/ \______/ |__/
  19.  
  20. By Nil5959
  21.  
  22. """
  23. def main():
  24. print("These are all of your stored passwords!\n\n===========================================\n")
  25. data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8').split('\n')
  26. profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i]
  27. for i in profiles:
  28. results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', i, 'key=clear']).decode('utf-8').split('\n')
  29. results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b]
  30. try:
  31. print ("{:<30}| {:<}".format(i, results[0]))
  32. except IndexError:
  33. print ("{:<30}| {:<}".format(i, ""))
  34. print("\n===========================================")
  35. getpass.getpass("\n\nPress enter to exit!")
  36. quit()
  37.  
  38.  
  39. cls()
  40. print(art)
  41. getpass.getpass("WiFi password revealer - Nil5959\nThis software was create for educational purpose Only!\nPress enter to see all stored passwords!")
  42. cls()
  43. print(art)
  44. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement