Juil 162017
 

A lancer en PowerShell

mkdir wifi
 cd wifi

netsh wlan export profile key=clear

$retour=@()

dir *.xml |% {
 $xml=[xml] (get-content $_)
 $tmp='' |select SSID,Password
 $tmp.SSID=$xml.WLANProfile.SSIDConfig.SSID.name
 $tmp.password=$xml.WLANProfile.MSM.Security.sharedKey.keymaterial
 $retour+=$tmp
 }

cd ..
 rmdir -recurse wifi

$retour | format-table -autosize
Et voilà…

  One Response to “Extraire les mots de passe des réseaux wifi connus de son PC”

  1. mkdir wifi
    cd wifi
    netsh wlan export profile key=clear

    dir *.xml |% { [xml] (get-content $_) |select @{n= »SSID »;e={$_.WLANProfile.SSIDConfig.SSID.name}},@{n= »Password »;e={$_.WLANProfile.MSM.Security.sharedKey.keymaterial}} }

    cd ..
    rmdir -recurse wifi

 Leave a Reply

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=""> <s> <strike> <strong>

(required)

(required)