metalx1000

Wifi Network info and passwords

Feb 27th, 2016
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.81 KB | None | 0 0
  1. #Get Wifi info - assuming your
  2.  
  3. #scan nearby networks
  4. sudo iwlist wlan0 scan
  5.  
  6. #Find what wifi networks you are connected too and with what device
  7. iwgetid
  8.  
  9. #Get info about currently connected wifi networks
  10. sudo cat /etc/NetworkManager/system-connections/"$(iwgetid -r)"
  11.  
  12. #Get the currently connect SSID and Passphrase
  13. sudo awk -F= '/^(psk|id)/{print $2}' /etc/NetworkManager/system-connections/"$(iwgetid -r)"
  14.  
  15. #windows wifi passowrds
  16. netsh wlan export profile key=clear
  17. #Where are Windows wifi passwords stored?
  18. #http://securityxploded.com/wifi-password-secrets.php
  19. #in WinXP
  20. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces\{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
  21.  
  22. #Vista and newer
  23. C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces\{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}\{Random-GUID}.xml
Add Comment
Please, Sign In to add comment