修改并补充折叠内容
This commit is contained in:
@@ -27,6 +27,9 @@ web端密码登录流程:
|
||||
curl 'http://passport.bilibili.com/login?act=getkey'
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>查看响应示例:</summary>
|
||||
|
||||
```json
|
||||
{
|
||||
"hash":"07c6501690c1af85",
|
||||
@@ -34,6 +37,8 @@ curl 'http://passport.bilibili.com/login?act=getkey'
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
## 获取加密公钥及密码盐值2(APP端)
|
||||
|
||||
> http://passport.bilibili.com/api/oauth2/getKey
|
||||
@@ -66,6 +71,9 @@ curl 'http://passport.bilibili.com/api/oauth2/getKey'\
|
||||
--data-urlencode 'sign=17004c193f688f0b5665c1068e733aff'
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>查看响应示例:</summary>
|
||||
|
||||
```json
|
||||
{
|
||||
"hash":"07c6501690c1af85",
|
||||
@@ -73,6 +81,8 @@ curl 'http://passport.bilibili.com/api/oauth2/getKey'\
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
## 登录密码的加密
|
||||
|
||||
**注:RSA公钥一般为固定值**
|
||||
@@ -177,6 +187,9 @@ curl 'https://passport.bilibili.com/web/login/v2'\
|
||||
--data-urlencode 'seccode=666666|jordan'
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>查看响应示例:</summary>
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
@@ -186,10 +199,15 @@ curl 'https://passport.bilibili.com/web/login/v2'\
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
**响应头部抓包信息:**
|
||||
|
||||
可明显看见设置了几个cookie(填入浏览器即可成功登录)
|
||||
|
||||
<details>
|
||||
<summary>查看响应示例:</summary>
|
||||
|
||||
```http
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 13 Jul 2020 06:56:00 GMT
|
||||
@@ -207,6 +225,8 @@ Cache-Control: no-cache
|
||||
X-Cache-Webcdn: BYPASS from jd-sxhz-dx-w-01
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
**游戏分站跨域登录url:**
|
||||
|
||||
游戏分站跨域登录url与cookie的值一一对应,可用于不方便设置cookie的场合提取使用
|
||||
|
||||
Reference in New Issue
Block a user