Customer site, their security policy for WiFi is an SSID with a secret PSK: the IT manager type the password on my PC to allow me to access the network.

Maybe he’s not aware of my keylogger or that the password con be easily retrieved in cleartext. Let’s see how.

Windows 10: retrieve the WiFi PSK in cleartext

Show a list of all WiFi profiles configured on the PC:

netsh wlan show profiles

Show the WiFi network currently in use:

netsh wlan show networks

Change PROFILENAME with the WiFi profile:

netsh wlan show profiles name="PROFILENAME" key=clear

Wrap up

Never type your passwords in a PC you don’t control - keylogger exists - and don’t rely on a secret PSK for your WiFi security.