Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[更新] 关于漫画 #875

Open
z0z0r4 opened this issue Jan 7, 2025 · 1 comment
Open

[更新] 关于漫画 #875

z0z0r4 opened this issue Jan 7, 2025 · 1 comment
Labels
anti-spider 反爬相关

Comments

@z0z0r4
Copy link
Collaborator

z0z0r4 commented Jan 7, 2025

漫画最近似乎有修改,在 68a77a2 中标为失效

也许可以参考以下讨论和实现

@z0z0r4 z0z0r4 added the anti-spider 反爬相关 label Jan 7, 2025
@Nemo2011
Copy link
Owner

Nemo2011 commented Jan 9, 2025

图片被加密确实存在,而且可以推断图片可以被解密为真实图片。

两种方法,一种是拆解掌管着底层逻辑的 jsvmp,干不了,一种是猜它是怎么把图片解密的,我折腾了一周,才在网页端控制台里提取出来了没被加密过的图片。发出来当个样例,希望有人能猜出来吧。

图片数据均已用 base64 加密。貌似访问加密过的图片的网页链接多次访问返回结果会出现变动。(cpx 可能有影响。)

test-imgdata.txt

再科普一个小知识,猜猜程序员在前端干了什么?漫画页面绘制是靠 canvas 完成的,经过方法可以把 canvas.drawImageImagesrc 定位到 blob 上,浏览器开发者工具就能看。这个 blob 看似是真实的文件,如果我们在 utf-8 下看,但我们只要在 hex 下看,就能看出来程序员的良苦用心。

这是 blob 中的图片:

00 00 00 1c 66 74 79 70 61 76 69 66 00 00 00 00 61 76 69 66
6d 69 66 31 6d 69 61 66 00 00 00 ef bf bd 6d 65 74 61 00 00
00 00 00 00 00 21 68 64 6c 72 00 00 00 00 00 00 00 00 70 69
63 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0e 70
69 74 6d 00 00 00 00 00 01 00 00 00 22 69 6c 6f 63 00 00 00
00 44 40 00 01 00 01 00 00 00 00 01 0e 00 01 00 00 00 00 00
01 6b ef bf bd 00 00 00 23 69 69 6e 66 00 00 00 00 00 01 00

这是真正的图片:

00 00 00 1c 66 74 79 70 61 76 69 66 00 00 00 00 61 76 69 66
6d 69 66 31 6d 69 61 66 00 00 00 ea 6d 65 74 61 00 00 00 00
00 00 00 21 68 64 6c 72 00 00 00 00 00 00 00 00 70 69 63 74
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0e 70 69 74
6d 00 00 00 00 00 01 00 00 00 22 69 6c 6f 63 00 00 00 00 44
40 00 01 00 01 00 00 00 00 01 0e 00 01 00 00 00 00 00 01 6b
f7 00 00 00 23 69 69 6e 66 00 00 00 00 00 01 00 00 00 15 69

blob 中的图片里 ef bf bd 存在 19999+ 个,然而真正图片中一个也没有。

最后,经过测试,每次得到的真实的图片目前为止都是相同的,可以借助这个特性多找几个请求验证猜想。至于以后是不是这样我不能保证。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
anti-spider 反爬相关
Projects
None yet
Development

No branches or pull requests

2 participants