115网盘的多挂载Cookie管理

115网盘经常有一个问题,就是一般只能使用网页版导出cookie登录CD2或者Alist,这会导致不能随时登录windows网页版,很麻烦,用不了很多Windows网页版的插件和脚本。

最近测试了个方案,还在测试中,记录备用。原理是通用手机客户端的cookie来登录所有的挂载,不占用Windows网页版的登录。以下为基本思路和方法:

​截至2023年7月30日有效。1,抓包手机端的cookie,可以是安卓或者iOS,保存;2,扫描登陆Windows网页版,使用EditThisCookie,导出cookie;3,使用手机端cookie的UID\CID\SEID,替换EditThisCookie导出的cookie中对应的UID\CID\SEID;4,使用替换后的EditThisCookie导出的cookie,在CD2中使用EditThisCookie登录。ps,手机端cookie还能用于登录Alist,相当于一个手机端cookie通用所有的挂载,网页端就随意登录,不会掉CD2和Alist的挂载。

安卓端抓包Cookie可以使用抓包精灵,抓包后保存好UID\CID\SEID,Alist的挂载格式为:

UID=xxxxxxx;CID=xxxxxxxx;SEID=xxxxxxxx

EditThisCookie导出的cookie格式为:

[
{
“domain”: “.115.com”,
“expirationDate”: xxxxxxx,
“hostOnly”: false,
“httpOnly”: false,
“name”: “115_lang”,
“path”: “/”,
“sameSite”: “unspecified”,
“secure”: false,
“session”: false,
“storeId”: “0”,
“value”: “zh”,
“id”: 1
},
{
“domain”: “.115.com”,
“hostOnly”: false,
“httpOnly”: true,
“name”: “CID”,
“path”: “/”,
“sameSite”: “unspecified”,
“secure”: false,
“session”: true,
“storeId”: “0”,
“value”: “xxxxxxxx”,
“id”: 2
},
{
“domain”: “.115.com”,
“hostOnly”: false,
“httpOnly”: true,
“name”: “SEID”,
“path”: “/”,
“sameSite”: “unspecified”,
“secure”: false,
“session”: true,
“storeId”: “0”,
“value”: “xxxxxxxxxx”,
“id”: 3
},
{
“domain”: “.115.com”,
“hostOnly”: false,
“httpOnly”: true,
“name”: “UID”,
“path”: “/”,
“sameSite”: “unspecified”,
“secure”: false,
“session”: true,
“storeId”: “0”,
“value”: “xxxxxxxxxxxx”,
“id”: 4
},
{
“domain”: “.115.com”,
“expirationDate”: xxxxxxxxx,
“hostOnly”: false,
“httpOnly”: true,
“name”: “USERSESSIONID”,
“path”: “/”,
“sameSite”: “unspecified”,
“secure”: false,
“session”: false,
“storeId”: “0”,
“value”: xxxxxxxxxxxxxxx”,
“id”: 5
},
{
“domain”: “115.com”,
“hostOnly”: true,
“httpOnly”: false,
“name”: “HWWAFSESID”,
“path”: “/”,
“sameSite”: “unspecified”,
“secure”: false,
“session”: true,
“storeId”: “0”,
“value”: “xxxxxxxxxxxxx”,
“id”: 6
},
{
“domain”: “115.com”,
“hostOnly”: true,
“httpOnly”: false,
“name”: “HWWAFSESTIME”,
“path”: “/”,
“sameSite”: “unspecified”,
“secure”: false,
“session”: true,
“storeId”: “0”,
“value”: “xxxxxxxxxxxxxxxxxxx”,
“id”: 7
}
]

Alist的挂载替换掉里面的xxxxxxxx,可直接导入。EditThisCookie导出的cookie因为隐私问题,我将所有的值修改为xxxxxxxxx。使用时建议直接使用EditThisCookie导出的cookie,修改UID\CID\SEID三个值对应的value值就可以使用。

以上,希望不会翻车。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注