Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kambala-decapitator/cfd3213c08117a79b8ac3c1001f56125 to your computer and use it in GitHub Desktop.
Save kambala-decapitator/cfd3213c08117a79b8ac3c1001f56125 to your computer and use it in GitHub Desktop.
get Fork password from macOS keychain
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