ShowPass is a Bash script that retrieves and displays WiFi network information, including the SSID, password, and security type. It also generates a QR code for easy WiFi access sharing.
- Retrieves current WiFi SSID
- Fetches the WiFi password from the system keychain
- Determines the WiFi security type
- Generates a QR code for quick WiFi access sharing
- Displays network information in the terminal
- macOS (the script uses macOS-specific commands)
qrencode
(installed automatically if not present)
- Clone this repository:
git clone https://github.com/ctorum/showpass.git
- Navigate to the cloned directory:
cd showpass
- Make the script executable:
chmod +x showpass.sh
- (Optional) Install globally for easier access:
sudo cp showpass.sh /usr/local/bin/showpass
Now you can run showpass
from any directory in the terminal.
Run the script from the terminal:
showpass
If you didn't install it globally, run it from the directory where it's located:
./showpass.sh
The script will:
- Check if
qrencode
is installed and install it if necessary. - Retrieve and display the current WiFi SSID, password, and security type.
- Generate and display a QR code in the terminal for easy WiFi sharing.
This script requires administrative privileges to access WiFi information. You may be prompted to enter your password when running the script.