Extraire les mots de passe des réseaux wifi connus de son PC
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à…
1 commentaire