You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
标题中接口即
https://manga.bilibili.com/twirp/comic.v1.Comic/ImageToken
,网页端呈现的其请求信息如下:请求负载表单中多出来了一个
m1
,m1
在每次获取token
的请求中都不同,但是长度相同,且貌似均以B
开头。顺着
m1
找到https://s1.hdslb.com/bfs/manga-static/manga-pc/static/js/reader.995d7fb4e7.js
。反混淆后能找到这么一段代码:
整理,能得到下面的代码:
output:
观察到 key 字段即为所需的
m1
字段,总结来说m1
为创建一个 ECC P-256 的密钥,然后将公钥 base64 加密的结果。最后附上一份
python
的翻译:Beta Was this translation helpful? Give feedback.
All reactions