FindMy icon indicating copy to clipboard operation
FindMy copied to clipboard

2FA authentication not working (no SMS sent)

Open derMart opened this issue 4 months ago • 2 comments

Hey all,

Running on linux, I started the anisette server via:

docker run -d --restart always --name anisette-v3 -p 6969:6969 --volume anisette-v3_data:${PATH_TO_DATA_DIR} dadoum/anisette-v3-server

then created a database file in the root of this repo

sqlite3 reports.db 'CREATE TABLE reports (id_short TEXT, timestamp INTEGER, datePublished INTEGER, payload TEXT, id TEXT, statusCode INTEGER, PRIMARY KEY(id_short,timestamp))'

Then I created a venv

python -m venv venv

activated the venv

source venv/bin/activate

then installed dependencies:

pip install pbkdf2 requests cryptography srp pycryptodome

then started the request script

$ python request_reports.py 
Apple ID: ${REDACTED}
Password: 
pyprovision is not installed, querying http://localhost:6969 for an anisette server
pyprovision is not installed, querying http://localhost:6969 for an anisette server
2FA required, requesting code
pyprovision is not installed, querying http://localhost:6969 for an anisette server
Enter 2FA code:

The apple Id used has SMS 2FA enabled (I guess every newly created apple ID has it, as a mobile number is now required to register an account :/ ) The SMS 2FA also works when logging in into the apple account. But with the request_reports.py no SMS is sent to the mobile number. Is this a known problem?

derMart avatar Oct 25 '25 15:10 derMart

This is a new issue, Apple recently started tightening access for projects like this. I do not have a lot of time currently, but I'll try to have a look soon. There are other projects that use the same code (for example https://github.com/malmeloo/FindMy.py or https://github.com/dchristl/macless-haystack), so you could keep an eye on the issues there as well. If it is a change on Apple's side, it will show up in those repos too.

biemster avatar Oct 25 '25 20:10 biemster

I also don't seem to be getting 2fa sms anymore, this is annoying

biemster avatar Oct 31 '25 19:10 biemster