How To Find And Store WIFI Password | subprocess API | All In One Code

Published: 23 October 2020
on channel: AIOC all in one code
649
19

pip install subprocess

code:

import subprocess
data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8').split('\n')
profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i]
for i in profiles:
running the 2nd cmd command to check passwords
results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', i,
'key=clear']).decode('utf-8').split('\n')
storing passwords after converting them to list
results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b]
printing the profiles(wifi name) with their passwords using
try and except method
try:
print ("{:30}| {:}".format(i, results[0]))
except IndexError:
print ("{:30}| {:}".format(i, ""))


Watch video How To Find And Store WIFI Password | subprocess API | All In One Code online, duration hours minute second in high quality that is uploaded to the channel AIOC all in one code 23 October 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 649 times and liked it 19 visitors.