mirror of
https://github.com/kunkunsh/kunkun-ext-wifi-password.git
synced 2025-04-11 17:29:46 +00:00
Enhance README.md formatting for code blocks and add JSR package link for @kunkun/kunkun-ext-wifi-password
This commit is contained in:
parent
cb4196e694
commit
09aaf3fdbd
28
README.md
28
README.md
@ -1,24 +1,26 @@
|
|||||||
# Wifi Password Share
|
# Wifi Password Share
|
||||||
|
|
||||||
|
[JSR Package: `@kunkun/kunkun-ext-wifi-password`](https://jsr.io/@kunkun)
|
||||||
|
|
||||||
## Platforms
|
## Platforms
|
||||||
|
|
||||||
- MacOS
|
- MacOS
|
||||||
```bash
|
```bash
|
||||||
networksetup -listpreferredwirelessnetworks en0
|
networksetup -listpreferredwirelessnetworks en0
|
||||||
security find-generic-password -D "AirPort network password" -a $SSID -w
|
security find-generic-password -D "AirPort network password" -a $SSID -w
|
||||||
```
|
```
|
||||||
- Windows
|
- Windows
|
||||||
```powershell
|
```powershell
|
||||||
$_, $ssid = ((netsh wlan show interface | findstr "Profile" | findstr /v "mode") -split ":",2).trim();
|
$_, $ssid = ((netsh wlan show interface | findstr "Profile" | findstr /v "mode") -split ":",2).trim();
|
||||||
$_, $pass = ((netsh wlan show profile name=$ssid key=clear | findstr Key) -split ":").trim();
|
$_, $pass = ((netsh wlan show profile name=$ssid key=clear | findstr Key) -split ":").trim();
|
||||||
```
|
```
|
||||||
- Linux
|
- Linux
|
||||||
```bash
|
```bash
|
||||||
ssid=$(nmcli device wifi show-password | grep SSID | cut -d : -f 2 | xargs)
|
ssid=$(nmcli device wifi show-password | grep SSID | cut -d : -f 2 | xargs)
|
||||||
password=$(nmcli device wifi show-password | grep Password | cut -d : -f 2 | xargs)
|
password=$(nmcli device wifi show-password | grep Password | cut -d : -f 2 | xargs)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Reveal Wifi Password from current machine
|
- Reveal Wifi Password from current machine
|
||||||
- Generate Connection QR Code, mobile devices can scan to connect directly
|
- Generate Connection QR Code, mobile devices can scan to connect directly
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user