Hack Forums
[Python] easily find wifi passwords with python - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] easily find wifi passwords with python (/showthread.php?tid=5680589)



easily find wifi passwords with python - Saduken - Jul 28, 2017

hey guys, this isn't much of a hack but more of just a useful tool I made. If you have entered your wifi password on your computer before but some how forgot it or lost it then this tool is for you. It also has some added benefits, lets say you're at school and you need the staff wifi because the student wifi blocks everything, well simply compile this tool with pyinstaller and you can plug it in to a school computer which I guarantee was once logged into the staff wifi. Simply run the exe that you compiled, now you have the staff wifi password! Just remember it only works if you have been logged onto the wifi before.

Code
import sys
import os
from colorama import Fore,init
init()
try:
    user = raw_input(Fore.GREEN + " Type Start To Continue >>> ")
    if user == "start":
        print (Fore.RED)
        os.system ("netsh wlan show profile")
        wifi = raw_input(Fore.GREEN + " Enter A Network Name: ")
        print(Fore.RED)
        os.system ("netsh wlan show profile " + (wifi) + " key=clear")
        print (Fore.GREEN + " Password For " + (wifi) + " Is Shown Above Under Key Content!")

except:
    print (Fore.RED + " Exiting System..")
    sys.exit()
        
finish = raw_input(" Type Exit To Close The Program >>> ")
if finish == "exit":
    sys.exit()



* - Carbanak - Jul 28, 2017

I would suggest outputting all WIFI profiles on the system its running on and not specify an input. Keep it up, great recovery tool for newbies.


* - hfactor - Jul 29, 2017

Nice one. However, unless you run it as administrator, you won't be able to see the WiFi key... And since student mode won't run as administrator, you would need some form of privilege escalation before this works.

WR,
HF


* - Saduken - Aug 2, 2017

(Jul 29, 2017 06:36 AM)hfactor Wrote:  Nice one. However, unless you run it as administrator, you won't be able to see the WiFi key... And since student mode won't run as administrator, you would need some form of privilege escalation before this works.

WR,
HF

yes this is true and that's a good point. You could easily work around this problem by using the ease of access exploit, good catch bro:)