Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TUTORIAL] "Forgot" your WiFi password? Here's a fix

This is how I did it ;)
Luckly I didn't have to recode because I made this script before you even created this thread.
Completely automated just in case anyone needs it.
No errors either

Code
@echo off
for /f "tokens=4 delims=: " %%A in ('netsh wlan show profiles') do (
for /f "tokens=2,* delims=: " %%B in ('netsh wlan show profiles "%%A" key^=clear ^| find /i "Key Content" ') do set "pw=%%C"
)
echo "%pw%"
pause
Interesting. I also tried it with my ISP's EAP account, it allocates 2mb to anyone with the same ISP's account so you can use other peoples routers as a kind of guest mode when visiting them.
Nothing too interesting came out of it as far as I could see but it does make me wonder if you could access the main ISP account or router while connected with an EAP account.
(Mar 24, 2017 01:28 PM)alwayslate Wrote:  Interesting. I also tried it with my ISP's EAP account, it allocates 2mb to anyone with the same ISP's account so you can use other peoples routers as a kind of guest mode when visiting them.
Nothing too interesting came out of it as far as I could see but it does make me wonder if you could access the main ISP account or router while connected with an EAP account.

Mhm, you should make it then.
'wlan' is not recognized as an internal or external command??
(Mar 26, 2017 06:06 AM)lobo30 Wrote:  'wlan' is not recognized as an internal or external command??

Its an issue with your computer, not the code. Possibility a problem with one of your drivers. You should google up the issue, ask on stack overflow. It also could be because the netsh wlan command isnt supported on your computer, could be many possibilities, but I don't think it will take long to resolve the issue.
Press the windows key + R at the same time, when the run diolog box appears type
Cmd in it. When the black box appears type this in it.

Netsh wlan show profiles

If it still says the same error, its definitely a issue with the computer not the code.
we can also just do netsh wlan show profile wifiname key=clear. It is good as well.
we can also just do netsh wlan show profile wifiname key=clear. It is good as well.
Very useful thank you. Saved me a lot of time.
It's funny, I was just trying to do that yesterday.

Thank you !
Thanks for the tutorial OP, If you have free time you can make a tutorial how to change a password on the wi-fi, would be very helpful! Thanks again. 🙂
Or simply

[Image: lvyq4XQ.png]
[Image: EsTfym0.png]
[Image: f7u5GzB.png]

You need to be admin to see the WPA key tho

Also easy to do
(Jun 4, 2017 11:14 AM)Mad76e Wrote:  Or simply


You need to be admin to see the WPA key tho

Also easy to do

The method in OP drops all saved wifi passwords on the machine.
Pretty sure anyone with a brain knows the method you showed.
(Jan 28, 2017 07:03 AM)ra1d Wrote:  How to extract passwords from WiFi's you've connected to on Windows

Open up CMD or Windows PowerShell with Administration permissions.


#step1
We want to list the wireless networks that the computer has connected to.
We can do that by going into netsh, type netsh in the terminal.
Then type the following
Code
wlan show profiles


#step2
Now we want to export the profile that we are interested in.
NOTE: If the WiFi name contains spaces then make sure to write the profile name in quotation marks.
Code
wlan export profile %ProfileName% folder=c:\sampleDirectory

Now you when you've exported the profile you will see that the password is encrypted if you open it in a text editor.

Let's fix this by adding key=clear to the end of that command.
So it will look like this:
Code
wlan export profile %ProfileName% folder=c:\sampleDirectory key=clear


#step3
Use the following command to import the profile on new computers.

Code
wlan add profile filename="%PathAndFileName%" user=all

#step4
You've now acquired the password to your WiFi, it will be located inside the .xml file that is exported.
It can be found under <keyMaterial>passwordHere</keyMaterial>

Save your wireless network profiles and setup your new computer in no time with a quick Batch script, or whatever you decide to write a script in.
Very useful for IT technicians, operations, etc...

Simple but very neat to have.
Also it doesn't work for all WiFi's, some have different authentication methods.

Thanks for the tutorial! I'll be sure to use this later down the road!
Thank you ra1d, useful information ^^
Жизнь это не те дни, что прошли, а те, что запомнились
Very useful tutorial, thanks for sharing this with us!


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Gambino1488Dec 18, 2021 09:13 PM 2 248 Dec 18, 2021 09:13 PM
Last Post: Gambino1488
by javinzplayerDec 9, 2019 11:26 AM 20 2,030 Dec 9, 2019 11:26 AM
Last Post: OR10N
by jeeje009Oct 28, 2019 10:55 PM 12 765 Oct 28, 2019 10:55 PM
Last Post: Solar_Flare