puddly / android-otp-extractor

Extracts OTP tokens from rooted Android devices
GNU General Public License v3.0
242 stars 22 forks source link

error on readding Steam codes #19

Closed benoit-pierre closed 6 years ago

benoit-pierre commented 6 years ago

After fixing #17, another error occurs when trying to read Steam codes:

Traceback (most recent call last):
  File "./extract_otp_tokens.py", line 532, in <module>
    accounts.update(read_steam_authenticator_accounts(args.data))
  File "./extract_otp_tokens.py", line 412, in read_steam_authenticator_accounts
    yield SteamAccount(account_json['account_name'], secret)
  File "./extract_otp_tokens.py", line 37, in __init__
    self.secret = normalize_secret(secret)
  File "./extract_otp_tokens.py", line 187, in normalize_secret
    return secret.upper().rstrip('=')
TypeError: a bytes-like object is required, not 'str'