Revealing your WLAN password using netsh and PowerShell

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

No related posts.

This entry was posted in News and tagged , , , . Bookmark the permalink.

5 Responses to Revealing your WLAN password using netsh and PowerShell

  1. Pingback: Fredrik Wall

  2. Fredrik Wall says:

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

  3. 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

  4. ShayLevy says:

    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

  5. Nice :)

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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>