Last 12 weeks · 0 commits
1 of 6 standards met
Summary Read the connected SSID with ipconfig on current macOS while retaining networksetup and airport fallbacks for older releases. Detect redacted SSIDs and use a small native Core Location helper to check authorization. Explain in English why Location Services access is required, then request it by default only when macOS hides the SSID. Avoid requesting, collecting, or storing geographic coordinates. Preserve POSIX sh compatibility, improve Keychain result handling, and add compatibility-focused mocks and tests. Compatibility Current macOS uses ipconfig getsummary. Earlier macOS releases fall back to networksetup and the legacy airport command when available. An explicit SSID avoids the Location Services flow. no-location-request disables permission prompts. Testing sh test/wifi-password.test.sh shellcheck -s sh wifi-password.sh test/wifi-password.test.sh test/mocks/* /bin/sh syntax validation zsh plugin syntax validation
Repository: rauchg/wifi-password. Description: Get the password of the wifi you're on (bash) Stars: 4569, Forks: 264. Primary language: Shell. Languages: Shell (100%). Open PRs: 9, open issues: 18. Last activity: 2y ago. Community health: 28%. Top contributors: rauchg, unixorn, jwerle, arielkirkwood, bramus, RReverser.