Skip to content

AppleAuthToken is a tool that dumps an Apple account's dsid and mmeAuthToken which can be used in API requests.

License

Notifications You must be signed in to change notification settings

MathewYaldo/AppleAuthToken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AppleAuthToken

AppleAuthToken is a tool that dumps an Apple account's dsid and mmeAuthToken which can be used in API requests.

Requirements

  1. Python 3
  2. Requests (can be installed with pip3 install requests)

How it works

After supplying the script with an email and password, it will attempt to access an Apple API. When accessed by an account with 2FA enabled, the request will be denied and a request for a 2FA code will be sent to all of the user's devices.

After supplying the six-digit access code, the script will attempt to authenticate with the API. Since there is no paramater for a 2FA code, it can be appended to the user's password which Apple will accept.

If the six-digit 2FA code is correct, then the API responds with a plist file containing the dsid and mmeAuthToken.

What's the purpose of a dsid and mmeAuthToken?

A dsid:mmeAuthToken pair can be used to authenticate API requests in place of an email/password.

Benefits:

  • The token can be saved and used for all future API requests.
  • Allows for authentication without 2FA.
  • Can be used in place of an email:password combination so that the password is never revealed.

How can I use this in my own project?

If you are using Python, simply save the Apple2FA file to the same directory as your main python script and import it with import Apple2FA. Call Apple2FA.PromptForVerification(email,password) to send an alert requesting for the 2FA code to all of the user's devices.

Afterwards, call Apple2FA.Request(email,password,code) to actually return the dsid:mmeAuthToken pair.

About

AppleAuthToken is a tool that dumps an Apple account's dsid and mmeAuthToken which can be used in API requests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages