Add "kind" flag to "Show Wi-Fi Network Passwords"

Adding the `-D` flag prevents passwords that aren't for Wi-Fi Networks from being shown.

```bash
> security find-generic-password -h
...
    -D  Match "kind" string
...
```
This commit is contained in:
Riley Shaw 2015-10-20 18:22:35 -07:00
parent 27549b71d4
commit ff7ecb39e2

View File

@ -719,7 +719,7 @@ defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.prefere
#### Show Wi-Fi Network Passwords #### Show Wi-Fi Network Passwords
Exchange SSID with the SSID of the access point you wish to query the password from. Exchange SSID with the SSID of the access point you wish to query the password from.
```bash ```bash
security find-generic-password -a "SSID" -gw security find-generic-password -D "AirPort network password" -a "SSID" -gw
``` ```