-
Notifications
You must be signed in to change notification settings - Fork 615
240522 今天出现请升级到最新客户端 #41
Comments
我一会看看 |
经过我简单测试,headers大概需要'User-Agent'、'Content-Type'、'x-device-id'、'x-canary'、'x-timestamp'、'x-nonce'、'x-signature-v2'、'authorization',也有可能比这些少,感觉'x-signature-v2'可能是'x-device-id'、'x-canary'、'x-timestamp'、'x-nonce'加密而来,不太懂,期待大佬们更新 |
刚刚发现,抓包手机端请求,把上述字段复制到脚本中,就是那几个‘x-’开头的,除了authorization变,其他保持原样,其他账号也可以签到 def _get_reward(self, access_token: str, sign_day: int) -> tuple[bool, str]:
import json
url = "https://member.aliyundrive.com/v1/activity/sign_in_reward"
params = {
'_rx-s': "mobile"
}
payload = json.dumps({
"signInDay": sign_day
})
headers = {
'User-Agent': "AliApp(AYSD/5.8.0) com.alicloud.databox/37029260 Channel/36176727979800@rimet_android_5.8.0 language/zh-CN /Android",
'Content-Type': "application/json",
'x-device-id': "0be6xxxxxxxxxxxxxxxxxxxxxxxxxxx7dac4",
'x-canary': "client=Android,app=adrive,version=v5.8.0",
'x-timestamp': "1716376521",
'x-nonce': "b9fd6ce6-a7ac-4d58-a419-f42a3aa31825",
'x-signature-v2': "568xxxxxxxxxxxxxxxxxxxxx236",
'authorization': f'Bearer {access_token}'
}
response = requests.post(url, params=params, data=payload, headers=headers)
print(response.text)
return True, response.text |
'x-device-id'和'x-signature-v2' 这两个值怎么取得的? 'x-timestamp' 就是时间戳吧 |
@jinde98 |
对的,不知道他这签名是怎么生成的。难搞😩 |
会 |
问题是签名 不知道怎么计算出来 |
查了些资料x-signature-v2是关键,不知道哪位大佬可以破解下。 'x-device-id' 是设备自己生成的,可以固定写死。 |
240522 今天出现请升级到最新客户端
The text was updated successfully, but these errors were encountered: