acgotaku / 115

Assistant for 115 to export download links to aria2-rpc
GNU General Public License v3.0
1.9k stars 325 forks source link

关于无法获取到下载地址的另一种猜想 #564

Closed harryhuangwei closed 1 year ago

harryhuangwei commented 1 year ago

刚刚测试了最新版的115官方浏览器,发现其实是保留了浏览器下载的 那么,有没有一种可能,我们把chrome或者其他chrome内核的浏览器伪装成115官方浏览器,然后就可以获取到下载地址了呢? 我是代码小白,大家不要笑我。哈哈

acgotaku commented 1 year ago

之前的方法就是模拟115浏览器的接口API,官方又更新了接口加密策略,很难破解。

harryhuangwei commented 1 year ago

大神辛苦了!期待你的好消息。

showmethemoney2022 commented 1 year ago

1,rsa公钥变化了(加密解密都用的公钥,以前是两个密钥?) self.n = 94467199538421168685115018334776065898663751652520808966691769684389754194866868839785962914624862265689699980316658987338198288176273874160782292722912223482699621202960645813656296092078123617049558650961406540632832570073725203873545017737008711614000139573916153236215559489283800593547775766023112169091 self.e = 0x10001 2,初始密钥变化了 self.g_kts = bytes.fromhex('F0E569AEBFDCBF8A1A45E8BE7DA673B8DE8FE7C445DA86C49B648B146AB4F1AA3801359E26692C860' '06B4FA5363462A62A966818F24AFDBD6B978F4D8F8913B76C8E93ED0E0D483ED72F88D8FEFE7E8650' '954FD1EB832634DB667B9C7E9D7A8132EAB633DE3AA95934663BAABA816048B9D5819CF86C8477FF5' '478265FBEE81E369F34805C452C9B76D51B8FCCC3B8F5') self.g_key_s = [0x29, 0x23, 0x21, 0x5E] self.g_key_l = bytearray(bytes.fromhex('7806AD4C33865D184C013F46')) 3,useragent=Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 115Browser/25.0.4.1

acgotaku commented 1 year ago

@mentaldease 请问下 数据来源?

callerin commented 1 year ago

加油鸭!

AZ-X commented 1 year ago

It’s a little push of installing dedicated apps on your device which is as alike as pure pill from Ali kinds. All we can learn is good things can be broken in one day after they migrated the multifactor services to aliyuncs. Let them suck.

showmethemoney2022 commented 1 year ago

这是我更新的密钥https://gist.github.com/showmethemoney2022/430ef0e45eeb7c99fedda2d2585cfe2e

fuxin052 commented 1 year ago

这是我更新的密钥https://gist.github.com/showmethemoney2022/430ef0e45eeb7c99fedda2d2585cfe2e

下载链接是获取到了, 但是链接是403的, 不知道缺了点什么

zer0pwned commented 1 year ago

1,rsa公钥变化了(加密解密都用的公钥,以前是两个密钥?)

加密解密都用公钥就很灵,我说为什么gist里只看到了n和e没有看到d。

zer0pwned commented 1 year ago

这是我更新的密钥https://gist.github.com/showmethemoney2022/430ef0e45eeb7c99fedda2d2585cfe2e

测了一下这个算法和密钥,是没问题的,可以正常下载。不过我用的是tempermonkey的115 优化大师 js脚本

acgotaku commented 1 year ago

@showmethemoney2022 测试了一下,确实可以,可以请问下是如何分析出密钥的么?

showmethemoney2022 commented 1 year ago

@showmethemoney2022 测试了一下,确实可以,可以请问下是如何分析出密钥的么?

调试115PC版

showmethemoney2022 commented 1 year ago

这是我更新的密钥https://gist.github.com/showmethemoney2022/430ef0e45eeb7c99fedda2d2585cfe2e

下载链接是获取到了, 但是链接是403的, 不知道缺了点什么

有时候downurl会返回一个cookie,chrome.cookies.getAll好像没获取到这个cookie,导致403,目前我是在自己服务器转发downurl,用来处理cookie

acgotaku commented 1 year ago

@showmethemoney2022 cookie问题我也看到了,下个版本会修正

acgotaku commented 1 year ago

https://github.com/acgotaku/115/releases/tag/v0.5.1 v0.5.1 版本修复了

感谢 @showmethemoney2022 对加密算法的支持

AZ-X commented 1 year ago

gotcha it works

csanmm887123 commented 1 year ago

谢谢大佬们的工作,可以用了!另外浏览器不能直接安装的可以进入浏览器的扩展设置页面再拖动进去就可以安装了

AZ-X commented 1 year ago

@acgotaku I found an issue that files below 1M failed to download. Please look into it. After modification of the UA string, the issue was resolved. They don’t check UA when downloading files with certain extensions.

Anza7i commented 1 year ago

这是我更新的密钥https://gist.github.com/showmethemoney2022/430ef0e45eeb7c99fedda2d2585cfe2e

下载链接是获取到了, 但是链接是403的, 不知道缺了点什么

我也出现403,你遇到的问题是怎样的。我的解决方法是,让发送downurl请求中携带的User-Agent和下载请求时的UA一致,否则115浏览器的版本不一致就会403

SAOJSM commented 1 year ago

这是我更新的密钥https://gist.github.com/showmethemoney2022/430ef0e45eeb7c99fedda2d2585cfe2e

测了一下这个算法和密钥,是没问题的,可以正常下载。不过我用的是tempermonkey的115 优化大师 js脚本

大佬,这脚本是您写的还是改的呢? 我看tempermonkey上原来的脚本有UI,您这个脚本也有UI,但最新版的看不到UI,不知道是什么问题

zer0pwned commented 1 year ago

@SAOJSM 这个是我改的4.7.6版,我一直都没有更新这个脚本,因为我只需要他的下载导出的功能。

acgotaku commented 1 year ago

https://chrome.google.com/webstore/detail/115exporter/ojafklbojgenkohhdgdjeaepnbjffdjf?hl=en

上架谷歌商店了