albeebe / PHP-FindMyiPhone

PHP class to locate, play sounds, and lock iOS devices
Other
79 stars 49 forks source link

401 Error: Your iCloud username and/or password are invalid #21

Open yueshiou opened 1 year ago

yueshiou commented 1 year ago

Hi all,

It seems apple changed something. My code stopped working yesterday. I'm sure the username and password are correct. Can anyone please help me? how to fix it?And what happen?

About to connect () to fmipmobile.icloud.com port 443 (#0) Trying 17.248.223.2. connected Connected to fmipmobile.icloud.com (17.248.223.2) port 443 (#0) Initializing NSS with certpath: sql:/etc/pki/nssdb warning: ignoring value of ssl.verifyhost skipping SSL peer certificate verification SSL connection using TLS ECDHE RSA WITH AES 256 GCM SHA384 Server certificate: subject: C=US,ST=California,0=Apple Inc.,CN=fmipmobile.icloud.com start date: Aug 01 16:05:18 2022 GMT expire date: Aug 31 16:15:18 2023 GMT common name: fmipmobile.icloud.com issuer: C=US,0=Apple Inc., OU=Certification Authority, CN=Apple Server Authentication CA Server auth using Basic with user 'send. sheen@msa.hinet.net'

POST /fmipservice/device/send.sheen@msa.hinet.net/initClient HTTP/1.1 Authorization: Basic c2VuZC5zaGVlbkBtc2EuaGluZXQubmV00jIzODAwNTkORGFqYW4= User-Agent: FindMyiPhone/472.1 CFNetwork/711.1.12 Darwin/14.0.0 Host: fmipmobile.icloud.com Accept: / EX-Apple-Realm-Support:1.0 Content-Length: 0 Content -Type: application/x-www-form-urlencoded

< HTTP/1.1 401 < Server: AppleHttpServer/f51b8f44eee0 < Date: Wed, 17 Aug 2022 07:55:21 GMT < Content-Length: 50 « Connection: keep-alive < Set-Cookie: r 3n2093n1a=9N4C6a5ENO/b2EsxBHLSiybXZejVamYvwumcySg84Q==; Path=/: Secure; Httponly < X-Responding- Instance: fmipservice:3:2299B20887:8384f680a7b < X-Robots-Tag: noindex, noarchive, nosnippet, nofollow < X-Responding-Server: prod-p67- fmipservice--remaining-784b7dcf7b-4c5r699 < X-Responding-Partition: p67 < Strict-Transport-Security: max-age=31536000; includeSubDomains; < x-apple-user-partition: 67 via: xrail:pv54p00ic-qujn06151902.me.com:8301:22R430:grp41,631194250daa17e24277dea86cf30319:51a 72c305107dc521bc3921676€87C8C6: twntcl < X-Apple-Request -UUID: baa8ebe-aa4f-4680 -9516-96d0d7c59efe < access-control-expose-headers:X-Apple-Request-UUID,Via < X-Apple-Edge-Response-Time: 149 Ta Connection #0 to host fmipmobile.icloud.com left intact Closing connection #0 Error: Your iCloud username and/or password are invalid[root@cent0svml html]#I

Sniperbypass commented 1 year ago

I have the same problem, can't find a solution

ersan commented 1 year ago

Same problem, following

uk747800 commented 1 year ago

Same here anyone found any solution for this ???

ersan commented 1 year ago

I switched to https://github.com/picklepete/pyicloud for now until I have time to figure out how fixable this is

uk747800 commented 1 year ago

what happen exactly ? did apple change something or it just a temporary issue with the server ? SSL maybe? even without ssl verification we still get invalid user/pass.

uk747800 commented 1 year ago

I switched to https://github.com/picklepete/pyicloud for now until I have time to figure out how fixable this is

can we get a list of devices without 2fa code?

mf1027 commented 1 year ago

does anyone have any updated post request?

yueshiou commented 1 year ago

I did nothing and my code back to work now. I checked my software. I started to receive findmyiphone daya in the morning on 2022-08-19. Thanks to those who gave feedback and cared about this issue.

london89 commented 1 year ago

my code back to work now, too

emjayhome commented 1 year ago

Hi, I just realized this is not working for me. I get the 401 error as described by yueshiou in the first post. Is there somebody who can confirm that the issue is back? Thanks! EmJay

london89 commented 1 year ago

yes, issue is back