ValvePython / steamctl

🤸 Take control of Steam from your terminal
https://pypi.org/project/steamctl/
MIT License
306 stars 16 forks source link

[decrypt_gid] Can't parse beta password if it contains letters? #39

Closed Nigm4s closed 2 years ago

Nigm4s commented 3 years ago

capture (I did not hide branch password because it's literally public)

rossengeorgiev commented 3 years ago

Remove manifest_gid from your command

Nigm4s commented 3 years ago

capture2

rossengeorgiev commented 3 years ago

Interesting. I don't why that is failing, and I can't test as I don't own that appid. However, you could modify the file just before line 122 and insert like:

print("egid:", repr(encrypted_gid))
print("password:", repr(password))

With that I can look to figure out why the output doesn't match the unpack

Nigm4s commented 3 years ago

capture3 egid: b'e\x17\x1f\xfb\xf2Ft\x11\xa6\x8d\x10\x98\xd0\xcd\x0fU' password: b'\xf2\xbeL\xde:\x9c\xfb\x92\x8fu\x00\x1c\x04\xd6\x91\x10\xa7\x84\x8b\xbbz\xf0\xb2\x9d5NM\x9aG\xae\x15\xb6'

rossengeorgiev commented 3 years ago

Ok, looks like that decrypts to empty, which means the password is incorrect. I guess Steam rotates it on the backend, and it changes, so older encrypted gids can no longer be decrypted. I'll add an error message for this