Net | Pass
Full Code for FREE!
Provides last good password of wireless networks you've connected to in the past

Requirements:
Python 3
Linux
root password
####################################
## Net | Pass | by pcondemand.com #####
####################################
from tkinter import *
import os
def up1():
text1.delete(0,END)
text1['bg']='white'
x=0
os.chdir('/etc/NetworkManager/system-connections/')
a=os.popen('ls -a').readlines()
for recs in a:
recs=recs.strip()
recs=str(recs)
if recs=="." or recs=="..":
pass
else:
x+=1
list1.insert(x,recs)
root.title(str(x)+' saved')
def pw():
text1.delete(0,END)
text1['bg']='white'
value=str((list1.get(ACTIVE)))
"".join(value)
e=os.popen('sudo cat '+"'"+value+"'")
d=e.readlines()
for recs in d:
recs=str(recs)
if 'psk=' in recs:
recs=recs[4:]
recs=recs.strip()
recs=str(recs)
text1['bg']='red'
text1.insert(INSERT,recs)
root=Tk()
root.title('NetPass for Linux')
root.geometry('300x280')
button1=Button(root,text='WiFi Networks',command=up1)
button1.pack()
list1=Listbox(root,selectmode=SINGLE,width=100)
list1.pack()
button2=Button(root,text='Password',command=pw)
button2.pack()
text1=Entry(root)
text1.pack()
root.mainloop()