NyaMisty / AltServer-Linux

AltServer for AltStore, but on-device
GNU Affero General Public License v3.0
988 stars 74 forks source link

Apple tokens calculation #3

Closed foiki closed 3 years ago

foiki commented 3 years ago

https://github.com/NyaMisty/AltServer-Linux/blob/a9f97b7cc210f9ad893ce18ac8bde233910731ac/src/AnisetteDataManager.cpp#L52

Do you have a solution for calculating X-Apple-I-MD-M and X-Apple-I-MD, instead of using constant values?

NyaMisty commented 3 years ago

Learn more before posting some wrong statements.

DebianArch64 commented 2 years ago

https://github.com/NyaMisty/AltServer-Linux/blob/a9f97b7cc210f9ad893ce18ac8bde233910731ac/src/AnisetteDataManager.cpp#L52

Do you have a solution for calculating X-Apple-I-MD-M and X-Apple-I-MD, instead of using constant values?

I happened to walk into this thread. AltServer Linux uses an anisette server provided by iOSGods - the reason for an anisette server is the opposite although X-Apple-I-MD is a constant, X-Apple-I-MD-M is not (needs to be changed every 90 seconds or so). Pretty much all anisette headers are actually pretty easy to reproduce especially since they are mostly user-specified like X-Apple-I-MD-LU which is just a SHA256 of the username of the device.

X-Apple-I-MD and X-Apple-I-MD-M aren't exactly "calculated" you have to contact apple's API to get spim and from that cpim then you get keys that nobody I know knows how to use, so the best route, for now, is either hooking into iTunes or using an anisette server

NyaMisty commented 2 years ago

True, but now you can spin up a anisette server using my alt-anisette-server to avoid -36607 error