Hack Forums
[Shell] How to get Wifi Passwords stored on machines ? - 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: [Shell] How to get Wifi Passwords stored on machines ? (/showthread.php?tid=4878480)



How to get Wifi Passwords stored on machines ? - Hackoo - Jun 23, 2015

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 !


* - 'Palladium - Jun 24, 2015

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.


* - 'Cynical - Jun 24, 2015

(Jun 24, 2015 12:43 AM)Ali. 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.


* - Hackoo - Jun 24, 2015

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 ✌ 👍


* - gogglebot - Jun 24, 2015

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.


* - annikk.exe - Jun 25, 2015

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.



* - evarand123 - Jun 27, 2015

i dont know where it shows the password


* - Hackoo - Jun 27, 2015

(Jun 27, 2015 11:41 AM)evarand123 Wrote:  i dont know where it shows the password

Take a look at this video