posted 14/03/10

Revealing your WLAN password using netsh and PowerShell

By Fredrik "DXter" Jonsson

I have for a very long time tried to explain to people that network security using pre shared keys is a false feeling of security (you should look at PKI based solutions instead ;) )! Many people seems to think that you must have one of those evil hacking tools (that your antivirus probably will detect) to be able to get your password for your WLAN from your computer in a clear text format. But that is incorrect, we can actually do this with built in tools in Windows. :D

 

For example, the following one liner is using netsh to reveal your WLAN password and is using PowerShell to sort out the security information and dumps it into a text file in the folder that your are executing the command. This command should be executed in an elevated PowerShell prompt.

 

netsh wlan show profiles name="the_name_of_your_network_profile_which_is_usually_the_ssid" key=clear | Select-Object -last 8 | Out-File -Filepath .\wlan_security_settings.txt

 

// Fredrik “DXter” Jonsson

Related posts:

  1. Code signing using PowerShell
  2. Bypassing the Symantec Corporate Edition uninstallation password
  3. The Power Admins How-To series (PowerShell)
  4. Revealing where a certificate is located
  5. What is a secure access point?


Comments
Fredrik Wall WordPress v1.2.2 March 14th, 2010 (12:51 pm)
comment

[Blog] Revealing your WLAN password using netsh and PowerShell: I have very for a very long time tried to explain … http://bit.ly/dsApVD

Bernd Kriszio WordPress v1.2.2 March 14th, 2010 (1:09 pm)
comment

RT @walle75: [Blog] Revealing your WLAN password using netsh and PowerShell: I have very for a very long time tried to explain … http://bit.ly/dsApVD

ShayLevy WordPress v1.2.2 March 14th, 2010 (1:32 pm)
comment

RT @walle75: [Blog] Revealing your WLAN password using netsh and PowerShell: I have very for a very long time tried to explain … http://bit.ly/dsApVD

Jan Egil Ring NORWAY Windows XP Internet Explorer 7.0 March 14th, 2010 (4:23 pm)
comment

Nice :)

I created a little script to export the settings for all WLANs on the system:
http://poshcode.org/1700

Add Comment

Name (Required)

E-mail (Required)

Website

Comment (Required)