Get the Google Authenticator keys from an encrypted iPhone backup for which you know the password.

Recipe

python backup_tool.py PATH_TO_BACKUP_FOLDER
python keychain_tool.py -d _extract/KeychainDomain/keychain-backup.plist _extract/Manifest.plist > keychain_decrypted
grep google.otp keychain_decrypted | cut -d\| -f3,4
import string,pyotp,base64
def toStr(s): #http://code.activestate.com/recipes/496969-convert-string-to-hex/
    return chr(string.atoi(s[:2], base=16)) + toStr(s[2:]) if s else ''
totp = pyotp.TOTP(base64.b32encode(toStr('the string from the grep without the >')))
print totp.now()

Go back to the home page