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

Shell 

How to get Wifi Passwords stored on machines ?

Hi 🤝
Did you know how to get the Wifi Passwords stored on machines using batch ?
I made before an hybrid code [Vbscript/Batch] to do that and is tested only on french machines and on windows 7 32 bits ! (I will post it later)

So this batch works for the moment only on french machines, so i'm looking for some help to improve it for working it on all machines !

Code
@echo off
Color 0A & Mode con cols=65 lines=3
Title Profils with Wifi Passwords Keys - By Hackoo
echo.
Echo      Please Wait ... Export Wifi profiles is in progress ...
netsh wlan show profiles  | Findstr /i "Profil" > Profiles.txt
for /f "delims=: Tokens=2" %%a in (Profiles.txt) do (netsh wlan show profiles key=clear name=%%a >> Profiles_WifiTmp.txt)
Cmd /U /C Type Profiles_WifiTmp.txt > Profiles_Wifi.txt
Del Profiles_WifiTmp.txt & Del Profiles.txt
start profiles_Wifi.txt

So please let me know if somebody here will work for him or not ? 😅

Thank you !
I wonder why it only works on French (based) machines, that's very strange. Also, the script looks wonderful and it's quite scary knowing a Batch script can obtain your WiFi network password, in let's see? 9 lines? Good job OP and good luck.
(Jun 24, 2015 12:43 AM)'Palladium Wrote:  I wonder why it only works on French (based) machines, that's very strange. Also, the script looks wonderful and it's quite scary knowing a Batch script can obtain your WiFi network password, in let's see? 9 lines? Good job OP and good luck.

netsh wlan show profiles | Findstr /i "Profil" > Profiles.txt

that's why.

You need to change Profil to be in other languages or whatever.

That's purely an assumption though, and will take my inspection to validate.
Hi 🤝
I think that i found a workaround for this code. Try it like this :

PHP Code

<?php 
@echo off
Color 0A 
& Mode con cols=70 lines=3 
Title Profils with Wifi Passwords Keys on Windows 7 
- by Hackoo
echo.
Echo      
Please Wait ... Export Profils with Wifi Passwords Keys ...
Timeout /T 2 /NoBreak>nul
Set MyWifiKeysFolder
=My_wifi_keys
If not exist %MyWifiKeysFolder% MD %MyWifiKeysFolder%
cd %MyWifiKeysFolder%
netsh wlan export profile key=clear >nul
Explorer 
"%~dp0%MyWifiKeysFolder%"
msg * Your Password is in keyMaterial TAG. 

Please don't forget to leave your feedback ✌ 👍 🎉 🤗


This is a hybrid code [Vbscript/Batch] to get all informations about Wifi with their keys of course animated by a waiting bar in HTA that looks like this screeshot :

[img]http://nsm08.casimages.com/img/2015/06/24//15062403211511244313394265.jpg[/img]


So to get it working, just copy and paste this code below and save it as WLan_Infos.vbs and run it by double click ✌ 👍
This line alone shows the password for a specified SSID that you've previously been connected to (along with all the other details about that connection)
Code
netsh wlan show profile name="somename" key=clear
Of course you'll need to know the SSID of the connection, you can get a list of the SSID's from this command:
Code
netsh wlan show profile

You'd probably need to write the output of that to a file and use findstr or use a for loop on the output to locate the SSIDs, then put them as a variable and put that into the name slot in the first command I listed.
Keep me fed and alive at Uni: Bitcoin Bitcoin: 16cwoYXfhaK6V5c8kJKn9SBMtDUARUs7BS
I'll draw terrible art in paint.NET for you, on request, in return <3
Nice script Hackoo :> I had a brief try on the computer I'm currently using but it doesn't have a wireless card so it didn't really work.

Code
C:\Users\admin>netsh wlan show profiles
The Wireless AutoConfig Service (wlansvc) is not running.
i dont know where it shows the password
(Jun 27, 2015 11:41 AM)evarand123 Wrote:  i dont know where it shows the password

Take a look at this video




Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by HackerPLMay 5, 2022 07:21 AM 6 340 May 5, 2022 07:21 AM
Last Post: NtCreateLife
[.NET] by t00lsApr 13, 2021 04:00 PM 12 712 Apr 13, 2021 04:00 PM
Last Post: Bumtendo
[Shell] by HackooOct 11, 2020 04:59 AM 36 2,537 Oct 11, 2020 04:59 AM
Last Post: Hackoo