Git Product home page Git Product logo

appleauthtoken's Introduction

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.

appleauthtoken's People

Contributors

m47h3w avatar

Stargazers

 avatar timetravel0 avatar Cleo avatar  avatar und3fined avatar Jevin Sweval avatar Xiaodong Chen avatar lilili8722 avatar  avatar tianyulong丶 avatar  avatar  avatar  avatar Chris avatar

Watchers

Jevin Sweval avatar  avatar

appleauthtoken's Issues

2FA for iCloud Backup

I used your ways to get dsPrsID:mmeAuthToken for iCloud backup. It doesn't work on iOS12+.Could you give me some advices? Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.