wifi-password
wifi-password copied to clipboard
Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect
Wifi password netsh wlan show profile
Hi! I appreciate the work you put in this, but sadly it doesn't work for me. I'm using Kubuntu 22.04 and the WiFi is a hidden network. If I run...
run_command方法中的返回语句字符集需要修改为“gbk” return output.decode("gbk").rstrip("\r\n") get_password方法中,判断为"win32“的分支需要修改 elif sys.platform == "win32": password = run_command(f"netsh wlan show profile name=\"{ssid}\" key=clear") password = re.findall(r"关键内容\s+:\s(.*)", password)[0]
This will more easily allow for troubleshooting by users. This actually came from an issue I had and figured out, which is pretty obvious based on my changes. It'll also...
Here's an example: Your command from [here](https://github.com/sdushantha/wifi-password/blob/1.1.1/wifi_password/wifi_password.py#L82-L85): ```shell m ~ % sudo nmcli -s -g 802-11-wireless-security.psk connection show $SSID | grep -q . && echo 'Password found' m ~ %...
 由于得到的字符串是中文的,所以需要换一种方式去解析 ```python elif sys.platform == "win32": password = run_command(f"netsh wlan show profile name=\"{ssid}\" key=clear") password_line = password.split("\r\n")[32] password = password_line[(password_line.find(":") if password_line.find(":") != -1 else password_line.find(":"))+ 1:].rstrip().lstrip() ``` 另外由于PowerShell输出流编码为GBK,所以不同平台的解码也需要考虑...
* Validated on Debian 11.0 (kernel 5.10.40-1) * Validated on Mac OS Catalina 10.15.7 * NOT validated on Windows (purely theoretical)
and then generate QRCode for the one(s) requested. Thanks