https://github.com/kunkunsh/kunkun-ext-wifi-password
https://github.com/kunkunsh/kunkun-ext-wifi-password
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kunkunsh/kunkun-ext-wifi-password
- Owner: kunkunsh
- License: mit
- Created: 2025-01-18T09:23:04.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-07T06:24:54.000Z (4 months ago)
- Last Synced: 2025-02-07T07:25:07.540Z (4 months ago)
- Language: TypeScript
- Size: 85 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wifi Password Share
JSR Package `@kunkun/kunkun-ext-wifi-password`: https://jsr.io/@kunkun/kunkun-ext-wifi-password
## Platforms
- MacOS
```bash
networksetup -listpreferredwirelessnetworks en0
security find-generic-password -D "AirPort network password" -a $SSID -w
```
- Windows
```powershell
(((netsh wlan show profiles | findstr "Profile") -split ":",2) | findstr /v "Profile").trim(); # find all wifi ssid
$_, $ssid = ((netsh wlan show interface | findstr "Profile" | findstr /v "mode") -split ":",2).trim(); # find current wifi ssid
$_, $pass = ((netsh wlan show profile name=$ssid key=clear | findstr Key) -split ":").trim(); # find current wifi password
```
- Linux
```bash
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)
```Ubuntu currently only supports showing passwords for connected wifi, I didn't find a way to find password for all wifis.
There is command for listing all wifi ssids, but not passwords.## Features
- Reveal Wifi Password from current machine
- Generate Connection QR Code, mobile devices can scan to connect directly