Skip to content

Commit 41dce82

Browse files
bump emulated browser (#1201)
1 parent 18dc967 commit 41dce82

34 files changed

+351
-351
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- fix: emulating old browser and client version fails authentication [#1073](https://github.com/icloud-photos-downloader/icloud_photos_downloader/issues/1073)
6+
57
## 1.29.1 (2025-07-20)
68

79
- fix: retries trigger rate limiting [#1195](https://github.com/icloud-photos-downloader/icloud_photos_downloader/issues/1195)

src/pyicloud_ipd/base.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def __init__(
140140
self.session.headers.update({
141141
'Origin': self.HOME_ENDPOINT,
142142
'Referer': '%s/' % self.HOME_ENDPOINT,
143-
'User-Agent': 'Opera/9.52 (X11; Linux i686; U; en)'
143+
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36'
144144
})
145145

146146
cookiejar_path = self.cookiejar_path
@@ -157,10 +157,8 @@ def __init__(
157157

158158
# Unsure if this is still needed
159159
self.params = {
160-
'clientBuildNumber': '17DHotfix5',
161-
'clientMasteringNumber': '17DHotfix5',
162-
'ckjsBuildVersion': '17DProjectDev77',
163-
'ckjsVersion': '2.0.5',
160+
'clientBuildNumber': '2522Project44',
161+
'clientMasteringNumber': '2522B2',
164162
'clientId': self.client_id,
165163
}
166164

tests/vcr_cassettes/2fa_flow_invalid_code.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interactions:
99
Content-Type: ['application/json']
1010
Origin: ['https://www.icloud.com']
1111
Referer: ['https://www.icloud.com/']
12-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
12+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
1313
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
1414
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
1515
X-Apple-OAuth-Redirect-URI: ['https://www.icloud.com']
@@ -55,7 +55,7 @@ interactions:
5555
Content-Type: ['application/json']
5656
Origin: ['https://www.icloud.com']
5757
Referer: ['https://www.icloud.com/']
58-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
58+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
5959
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
6060
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
6161
X-Apple-OAuth-Redirect-URI: ['https://www.icloud.com']
@@ -114,7 +114,7 @@ interactions:
114114
12-Jan-2024 05:06:31 GMT;Path=/;Domain=.icloud.com;Secure;HttpOnly'
115115
Origin: ['https://www.icloud.com']
116116
Referer: ['https://www.icloud.com/']
117-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
117+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
118118
method: GET
119119
uri: https://idmsa.apple.com/appleauth/auth
120120
response:
@@ -147,7 +147,7 @@ interactions:
147147
Content-Length: ['1157']
148148
Origin: ['https://www.icloud.com']
149149
Referer: ['https://www.icloud.com/']
150-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
150+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
151151
method: POST
152152
uri: https://setup.icloud.com/setup/ws/1/accountLogin
153153
response:
@@ -214,7 +214,7 @@ interactions:
214214
aasp=aasp-1234567890'
215215
Origin: ['https://www.icloud.com']
216216
Referer: ['https://www.icloud.com/']
217-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
217+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
218218
X-Apple-ID-Session-Id: ['session-1234567890']
219219
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
220220
X-Apple-OAuth-Client-Type: ['firstPartyAuth']

tests/vcr_cassettes/2fa_flow_valid_code.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interactions:
99
Content-Type: ['application/json']
1010
Origin: ['https://www.icloud.com']
1111
Referer: ['https://www.icloud.com/']
12-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
12+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
1313
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
1414
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
1515
X-Apple-OAuth-Redirect-URI: ['https://www.icloud.com']
@@ -55,7 +55,7 @@ interactions:
5555
Content-Type: ['application/json']
5656
Origin: ['https://www.icloud.com']
5757
Referer: ['https://www.icloud.com/']
58-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
58+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
5959
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
6060
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
6161
X-Apple-OAuth-Redirect-URI: ['https://www.icloud.com']
@@ -114,7 +114,7 @@ interactions:
114114
12-Jan-2024 05:06:31 GMT;Path=/;Domain=.icloud.com;Secure;HttpOnly'
115115
Origin: ['https://www.icloud.com']
116116
Referer: ['https://www.icloud.com/']
117-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
117+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
118118
method: GET
119119
uri: https://idmsa.apple.com/appleauth/auth
120120
response:
@@ -147,7 +147,7 @@ interactions:
147147
Content-Length: ['1157']
148148
Origin: ['https://www.icloud.com']
149149
Referer: ['https://www.icloud.com/']
150-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
150+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
151151
method: POST
152152
uri: https://setup.icloud.com/setup/ws/1/accountLogin
153153
response:
@@ -214,7 +214,7 @@ interactions:
214214
aasp=aasp-1234567890'
215215
Origin: ['https://www.icloud.com']
216216
Referer: ['https://www.icloud.com/']
217-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
217+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
218218
X-Apple-ID-Session-Id: ['session-1234567890']
219219
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
220220
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
@@ -281,7 +281,7 @@ interactions:
281281
12-Jan-2024 05:06:31 GMT;Path=/;Domain=.icloud.com;Secure;HttpOnly'
282282
Origin: ['https://www.icloud.com']
283283
Referer: ['https://www.icloud.com/']
284-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
284+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
285285
method: GET
286286
uri: https://idmsa.apple.com/appleauth/auth/2sv/trust
287287
response:
@@ -330,7 +330,7 @@ interactions:
330330
Content-Length: ['1157']
331331
Origin: ['https://www.icloud.com']
332332
Referer: ['https://www.icloud.com/']
333-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
333+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
334334
method: POST
335335
uri: https://setup.icloud.com/setup/ws/1/accountLogin
336336
response:

tests/vcr_cassettes/2fa_flow_valid_code_zero_lead.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interactions:
99
Content-Type: ['application/json']
1010
Origin: ['https://www.icloud.com']
1111
Referer: ['https://www.icloud.com/']
12-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
12+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
1313
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
1414
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
1515
X-Apple-OAuth-Redirect-URI: ['https://www.icloud.com']
@@ -55,7 +55,7 @@ interactions:
5555
Content-Type: ['application/json']
5656
Origin: ['https://www.icloud.com']
5757
Referer: ['https://www.icloud.com/']
58-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
58+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
5959
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
6060
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
6161
X-Apple-OAuth-Redirect-URI: ['https://www.icloud.com']
@@ -114,7 +114,7 @@ interactions:
114114
12-Jan-2024 05:06:31 GMT;Path=/;Domain=.icloud.com;Secure;HttpOnly'
115115
Origin: ['https://www.icloud.com']
116116
Referer: ['https://www.icloud.com/']
117-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
117+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
118118
method: GET
119119
uri: https://idmsa.apple.com/appleauth/auth
120120
response:
@@ -147,7 +147,7 @@ interactions:
147147
Content-Length: ['1157']
148148
Origin: ['https://www.icloud.com']
149149
Referer: ['https://www.icloud.com/']
150-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
150+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
151151
method: POST
152152
uri: https://setup.icloud.com/setup/ws/1/accountLogin
153153
response:
@@ -214,7 +214,7 @@ interactions:
214214
aasp=aasp-1234567890'
215215
Origin: ['https://www.icloud.com']
216216
Referer: ['https://www.icloud.com/']
217-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
217+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
218218
X-Apple-ID-Session-Id: ['session-1234567890']
219219
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
220220
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
@@ -281,7 +281,7 @@ interactions:
281281
12-Jan-2024 05:06:31 GMT;Path=/;Domain=.icloud.com;Secure;HttpOnly'
282282
Origin: ['https://www.icloud.com']
283283
Referer: ['https://www.icloud.com/']
284-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
284+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
285285
method: GET
286286
uri: https://idmsa.apple.com/appleauth/auth/2sv/trust
287287
response:
@@ -330,7 +330,7 @@ interactions:
330330
Content-Length: ['1157']
331331
Origin: ['https://www.icloud.com']
332332
Referer: ['https://www.icloud.com/']
333-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
333+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
334334
method: POST
335335
uri: https://setup.icloud.com/setup/ws/1/accountLogin
336336
response:

tests/vcr_cassettes/2sa_flow_invalid_code.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interactions:
99
Content-Type: ['application/json']
1010
Origin: ['https://www.icloud.com']
1111
Referer: ['https://www.icloud.com/']
12-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
12+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
1313
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
1414
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
1515
X-Apple-OAuth-Redirect-URI: ['https://www.icloud.com']
@@ -55,7 +55,7 @@ interactions:
5555
Content-Type: ['application/json']
5656
Origin: ['https://www.icloud.com']
5757
Referer: ['https://www.icloud.com/']
58-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
58+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
5959
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
6060
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
6161
X-Apple-OAuth-Redirect-URI: ['https://www.icloud.com']
@@ -105,7 +105,7 @@ interactions:
105105
Content-Length: ['1157']
106106
Origin: ['https://www.icloud.com']
107107
Referer: ['https://www.icloud.com/']
108-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
108+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
109109
method: POST
110110
uri: https://setup.icloud.com/setup/ws/1/accountLogin
111111
response:
@@ -178,9 +178,9 @@ interactions:
178178
12-Jan-2024 05:06:31 GMT;Path=/;Domain=.icloud.com;Secure;HttpOnly'
179179
Origin: ['https://www.icloud.com']
180180
Referer: ['https://www.icloud.com/']
181-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
181+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
182182
method: GET
183-
uri: https://setup.icloud.com/setup/ws/1/listDevices?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
183+
uri: https://setup.icloud.com/setup/ws/1/listDevices?clientBuildNumber=2522Project44&clientMasteringNumber=2522B2&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
184184
response:
185185
body:
186186
string: !!python/unicode '{"devices":[{"deviceType":"SMS","areaCode":"","phoneNumber":"*******03","deviceId":"1"}]}'
@@ -221,9 +221,9 @@ interactions:
221221
12-Jan-2024 05:06:31 GMT;Path=/;Domain=.icloud.com;Secure;HttpOnly'
222222
Origin: ['https://www.icloud.com']
223223
Referer: ['https://www.icloud.com/']
224-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
224+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
225225
method: POST
226-
uri: https://setup.icloud.com/setup/ws/1/sendVerificationCode?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
226+
uri: https://setup.icloud.com/setup/ws/1/sendVerificationCode?clientBuildNumber=2522Project44&clientMasteringNumber=2522B2&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
227227
response:
228228
body:
229229
string: !!python/unicode '{"success":true}'
@@ -254,9 +254,9 @@ interactions:
254254
Content-Length: ['52']
255255
Origin: ['https://www.icloud.com']
256256
Referer: ['https://www.icloud.com/']
257-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
257+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
258258
method: POST
259-
uri: https://setup.icloud.com/setup/ws/1/validateVerificationCode?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
259+
uri: https://setup.icloud.com/setup/ws/1/validateVerificationCode?clientBuildNumber=2522Project44&clientMasteringNumber=2522B2&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
260260
response:
261261
body:
262262
string: !!python/unicode '{"success":false,"errorTitle":"Invalid Code","errorMessage":"The

tests/vcr_cassettes/2sa_flow_valid_code.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interactions:
99
Content-Type: ['application/json']
1010
Origin: ['https://www.icloud.com']
1111
Referer: ['https://www.icloud.com/']
12-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
12+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
1313
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
1414
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
1515
X-Apple-OAuth-Redirect-URI: ['https://www.icloud.com']
@@ -55,7 +55,7 @@ interactions:
5555
Content-Type: ['application/json']
5656
Origin: ['https://www.icloud.com']
5757
Referer: ['https://www.icloud.com/']
58-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
58+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
5959
X-Apple-OAuth-Client-Id: ['d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d']
6060
X-Apple-OAuth-Client-Type: ['firstPartyAuth']
6161
X-Apple-OAuth-Redirect-URI: ['https://www.icloud.com']
@@ -105,7 +105,7 @@ interactions:
105105
Content-Length: ['1157']
106106
Origin: ['https://www.icloud.com']
107107
Referer: ['https://www.icloud.com/']
108-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
108+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
109109
method: POST
110110
uri: https://setup.icloud.com/setup/ws/1/accountLogin
111111
response:
@@ -202,9 +202,9 @@ interactions:
202202
12-Jan-2024 05:06:31 GMT;Path=/;Domain=.icloud.com;Secure;HttpOnly'
203203
Origin: ['https://www.icloud.com']
204204
Referer: ['https://www.icloud.com/']
205-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
205+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
206206
method: GET
207-
uri: https://setup.icloud.com/setup/ws/1/listDevices?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
207+
uri: https://setup.icloud.com/setup/ws/1/listDevices?clientBuildNumber=2522Project44&clientMasteringNumber=2522B2&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
208208
response:
209209
body:
210210
string: !!python/unicode '{"devices":[{"deviceType":"SMS","areaCode":"","phoneNumber":"*******03","deviceId":"1"}]}'
@@ -245,9 +245,9 @@ interactions:
245245
12-Jan-2024 05:06:31 GMT;Path=/;Domain=.icloud.com;Secure;HttpOnly'
246246
Origin: ['https://www.icloud.com']
247247
Referer: ['https://www.icloud.com/']
248-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
248+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
249249
method: POST
250-
uri: https://setup.icloud.com/setup/ws/1/sendVerificationCode?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
250+
uri: https://setup.icloud.com/setup/ws/1/sendVerificationCode?clientBuildNumber=2522Project44&clientMasteringNumber=2522B2&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
251251
response:
252252
body:
253253
string: !!python/unicode '{"success":true}'
@@ -278,9 +278,9 @@ interactions:
278278
Content-Length: ['52']
279279
Origin: ['https://www.icloud.com']
280280
Referer: ['https://www.icloud.com/']
281-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
281+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
282282
method: POST
283-
uri: https://setup.icloud.com/setup/ws/1/validateVerificationCode?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
283+
uri: https://setup.icloud.com/setup/ws/1/validateVerificationCode?clientBuildNumber=2522Project44&clientMasteringNumber=2522B2&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=12345678901
284284
response:
285285
body:
286286
string: !!python/unicode '{"success":true}'
@@ -311,7 +311,7 @@ interactions:
311311
Content-Length: ['1157']
312312
Origin: ['https://www.icloud.com']
313313
Referer: ['https://www.icloud.com/']
314-
User-Agent: ['Opera/9.52 (X11; Linux i686; U; en)']
314+
User-Agent: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36']
315315
method: POST
316316
uri: https://setup.icloud.com/setup/ws/1/accountLogin
317317
response:

0 commit comments

Comments
 (0)