Wifi Password Extractor Using Python

Wifi Password Extractor Using Python | theAShub Store
Wifi Password Extractor Using Python |theAShub Store
Wi-Fi is the one of the most using wireless technology for connecting computers, tablets, smartphones and other devices to the internet. Although wifi settings offer password security so that it can’t be access by everyone. Many of the users always trying to know the password of nearby wifi’s for using free internet connection. Now in this post, I will show you how to extract the password of wifi’s conneted to a particular device using Python commands.

How To Extract Wifi Password Using Python

  • Get in touch of that device in which your desired wifi connections connected.
  • Open Python IDLE.
  • Choose New from option (Now you will interact with script mode of python IDLE).
  • Copy the below codes.

Python Codes for wifi extractor

import subprocess
# Get metadata of wifi's
data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8', errors="backslashreplace").split(
    'n')

# Extract available Wi-Fi profiles names
profile = []
for i in data:
    if "All User Profile" in i:
        profile.append(i.split(":")[1][1:-1])

for i in profile:
    try:  # Extract Metadata
        results = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles', i, "key=clear"]).decode('utf-8',
                                                                                                        errors="backslashreplace").split(
            'n')
        result = []

        # Extract passwords
        for b in results:
            if "Key Content" in b:
                result.append(b.split(":")[1][1:-1])
        try:
            print("{:<30}| {:<}".format(i, result[0]))
        except Exception as e:
            print("{:<30}| {:<}".format(i, ""))
    except Exception as e:
        print("{:<30}| {:<}".format(i, "ERROR OCCURED"))
print('|| Powered by theAShub Store -thankyou ||')

  • Paste it into the Python IDLE.
  • Save the file by your desire name.
  • Run the codes.
  • Now prompt will open and close many times for doing internal (meta data ) process extraction.
Wifi Password Extractor Using Python | theAShub Store
Finally you will able to see the wifis list with names and password.
Wifi Password Extractor Using Python | theAShub Store
Also Read
  How to find WiFi Password Using CMD ?
Don’t use this trick for troubling anyone, this is only for education purpose.
Stay Update !

Leave a Comment