albeebe / PHP-FindMyiPhone

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

silent fail #19

Open yosun opened 2 years ago

yosun commented 2 years ago

this now silently fails. please fix it.

Kryd0s commented 2 years ago

Here is the response that Apple is sending back:

HTTP/1.1 503 
Server: AppleHttpServer/f6f00135a2e1
Date: Wed, 17 Nov 2021 04:14:51 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: <removed>; Path=/; Secure; HttpOnly
X-Responding-Instance: fmipservice:11300603:2203B780:18819131af52
Retry-After: 9997
Strict-Transport-Security: max-age=31536000; includeSubDomains;
via: xrail:st53p00ic-qujn13060901.me.com:8301:21D393:grp61,631194250daa17e24277dea86cf30319:003a1423fc35c68720299197b7c60db9:ussjc1
X-Apple-Request-UUID: 4b0d4115-f433-487a-9903-52d1c60c4269
access-control-expose-headers: X-Apple-Request-UUID,Via
X-Apple-Edge-Response-Time: 69

{"url":"https://support.apple.com/en-us/HT204230"}
Kryd0s commented 2 years ago

Digging through the code, and comparing it to the requests sent to and from the web browser version of iCloud it looks like this PHP code is supposed to be emulating an iPhone 5s. Charles Proxy for iOS is $8.99 which I believe is what @albeebe used to sniff out the headers and requests and everything originally. I might be willing to pay the 9 bucks to see if I can get this working again if @albeebe is no longer active to fix the code themselves.

BetyOops commented 2 years ago

Digging through the code, and comparing it to the requests sent to and from the web browser version of iCloud it looks like this PHP code is supposed to be emulating an iPhone 5s. Charles Proxy for iOS is $8.99 which I believe is what @albeebe used to sniff out the headers and requests and everything originally. I might be willing to pay the 9 bucks to see if I can get this working again if @albeebe is no longer active to fix the code themselves.

Hi,

Do plan to try to fix the API @Kryd0s ?

Kryd0s commented 2 years ago

Do plan to try to fix the API @Kryd0s ?

I was going to give @albeebe some time to respond.

MrVinceZ commented 2 years ago

Hello, any news about the fix ? Thank you

NebzHB commented 2 years ago

@Kryd0s Hello, any plan to fix that ? it seems @albeebe doesn't read his notifications ;)

Kryd0s commented 2 years ago

@BetyOops @MrVinceZ @NebzHB I paid the $9 and downloaded the Charles app, but I haven't made any progress on this. Charles is supposed to be able to proxy SSL connections and it works on a lot of apps, but it doesn't work on the Find(myiPhone) app. Not sure why. I may mess around with this some more, or try another method to fix it, but it's not looking very promising.

jakehaas commented 2 years ago

FYI - I was able to get the library working again by adding the following CURL opt to the curlPOST method.

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);