Created
February 21, 2021 14:50
-
-
Save kambala-decapitator/cfd3213c08117a79b8ac3c1001f56125 to your computer and use it in GitHub Desktop.
get Fork password from macOS keychain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. security find-generic-password -s Fork.account.SOME_ACCOUNT -g | |
2. in the output find "password: 0x...", you need this hex value without 0x up to "bplist... | |
3. echo 'ABOVE_VALUE' | xxd -r -p | plutil -p - | |
4. now you can read the password, sample output: | |
2 => "username" | |
3 => "password" | |
4 => "type" | |
5 => "USERNAME" | |
6 => "PASSWORD" | |
7 => "bitbucketApplicationPassword" | |
The password is actually also visible in the output of 1), but it might be difficult to see/copy. Sample output: | |
\020\023USERNAME_\020\024PASSWORD_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment