и посмотреть медиа
PythonNotes- Python notes
и посмотреть медиа
Free Notes on Python, JavaJavaScriptC, C++. Courses and updates about vacancies in Telegram.
Free Notes on Python, JavaJavaScriptC, C++. Courses and updates about vacancies in Telegram.
🌟 PythonNotes —The perfect place to learn programming! Here are collected free notes on popular languages: Python, Java,JavaScript, C and C++. Quality materials will help to master the basics and deepen knowledge.
📚Get free courses that explain complex topics in simple language. Regular updates on vacancies inITThey'll help you find your first job. Everything is structured for easy learning.
🔥Suitable for beginners and continuing. Practice with code examples and theory. Become a programmer at no cost!
# Get WiFi Passwords using Python 💻 Code 👇👇👇👇👇👇👇👇 import subprocess import re command_output = subprocess.run(["netsh", "wlan", "show", "profiles"], capture_output = True).stdout.decode() profile_names = (re.findall("All User Profile : (.*)\r", command_output)) wifi_list = list() if len(profile_names) !=0: for name in profile_names: wifi_profile = dict() profile_info = subprocess.run(["netsh", "wlan", "show", "profile", name], capture_output = True).stdout.decode() if re.search("Security Key : Absent", profile_info): continue else: wifi_profile["ssid"] = name profile_info_pass = subprocess.run(["netsh", "wlan", "show", "profile", name, "key=clear"], capture_output = True).stdout.decode() password = re.search("Key Content : (.*)\r", profile_info_pass) if password == None: wifi_profile["password"] = None else: wifi_profile["password"] = password[1] wifi_list.append(wifi_profile) for x in range(len(wifi_list)): print(wifi_list[x])
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!