Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looking to decrypt encrypted application tickets #9

Closed
ryan1336 opened this issue Jun 2, 2020 · 4 comments
Closed

Looking to decrypt encrypted application tickets #9

ryan1336 opened this issue Jun 2, 2020 · 4 comments
Labels
invalid This doesn't seem right

Comments

@ryan1336
Copy link

ryan1336 commented Jun 2, 2020

Hi,

I'm looking for help decrypting encrypted application tickets.

Using ValvePython's Steam library (pip install steam)

` data = "CAEQ8IrOxw0YBCA+KnAsX1ZReXWSFz1IHPQ6sBSTBK3hj2co79vrystWUrqUyOz9ueLpMy59R0WAirzid93gVGyT7wb3Ptwmdtqhb+UtqIupxHQ7n5k6HCCAh4Us3jC3a64hhJ9XjEEzorxzciVbSgQmMASYBGCtBjRV7f1R"
data = base64.b64decode(data)
keyx = key.encode()
decrypted_data = crypto.symmetric_decrypt(crypto.pad(data), keyx)

import struct
s = struct.unpack_from("IIQIIIINNhIhhhxx", decrypted_data[:64])`

I wonder if your library can accomplish it instead as I've hit a wall using Py Steam, probably have the struct all wrong. How can I contact you by the way? Do you do consultations?

@Gobot1234
Copy link
Owner

Gobot1234 commented Jun 2, 2020

I have no clue sorry, if you want to get in contact with Rossen, the creator of ValvePython/steam he may be more helpful. https://webchat.freenode.net/#steamkit

We do also have a discord server https://discord.gg/M68WUS

@Gobot1234 Gobot1234 added the invalid This doesn't seem right label Jun 2, 2020
@Gobot1234
Copy link
Owner

I may have an answer, not too sure if this is what you want

from base64 import b64decode

from steam.protobufs import encrypted_app_ticket_pb2


print(encrypted_app_ticket_pb2.EncryptedAppTicket.FromString(b64decode('CAEQ8IrOxw0YBCA+KnAsX1ZReXWSFz1IHPQ6sBSTBK3hj2co79vrystWUrqUyOz9ueLpMy59R0WAirzid93gVGyT7wb3Ptwmdtqhb+UtqIupxHQ7n5k6HCCAh4Us3jC3a64hhJ9XjEEzorxzciVbSgQmMASYBGCtBjRV7f1R')))

>>> ticket_version_no: 1
... crc_encryptedticket: 3639838064
... cb_encrypteduserdata: 4
... cb_encrypted_appownershipticket: 62
... encrypted_ticket: ",_VQyu\222\027=H\034\364:\260\024\223\004\255\341\217g(\357\333\353\312\313VR\272\224\310\354\375\271\342\3513.}GE\200\212\274\342w\335\340Tl\223\357\006\367>\334&v\332\241o\345-\250\213\251\304t;\237\231:\034 \200\207\205,\3360\267k\256!\204\237W\214A3\242\274sr%[J\004&0\004\230\004`\255\0064U\355\375Q"

@ryan1336
Copy link
Author

ryan1336 commented Jun 3, 2020 via email

@Gobot1234
Copy link
Owner

Structs confuse me so no clue on that front.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants