Browse Source

bugfix extract_secrets_from_android_rooted; #69

* fixed file split
* fixed bytes to str comparison in py3
pull/35/merge
Rossen Georgiev 8 years ago
parent
commit
0a32c5d88e
  1. 6
      steam/guard.py

6
steam/guard.py

@ -467,7 +467,7 @@ def extract_secrets_from_android_rooted(adb_path='adb'):
- device in debug mode, connected and paired
.. note::
If you know how to make this work, without requiring a the device to be rooted,
If you know how to make this work, without requiring the device to be rooted,
please open a issue on github. Thanks
:param adb_path: path to adb binary
@ -481,8 +481,10 @@ def extract_secrets_from_android_rooted(adb_path='adb'):
"'cat /data/data/com.valvesoftware.android.steam.community/files/Steamguard*'"
])
data = data.decode('utf-8')
if data[0] != "{":
raise RuntimeError("Got invalid data: %s" % repr(data))
return {int(x['steamid']): x
for x in map(json.loads, data.replace("}{", '}||||{').split('|||||'))}
for x in map(json.loads, data.replace("}{", '}|||||{').split('|||||'))}

Loading…
Cancel
Save