漁滒 发表于 2023-3-3 21:29

某浪视频key解密分析

本帖最后由 漁滒 于 2023-3-4 17:11 编辑

@(某浪视频key解密分析)

最近坛内出现不少关于某浪的逆向分析教学教学贴
1.[某浪视频获取](https://www.52pojie.cn/thread-1741682-1-1.html)
2.[某浪m3u8解密简单分析](https://www.52pojie.cn/thread-1617087-1-1.html)
3.[某浪新版key解密](https://www.52pojie.cn/thread-1749758-1-1.html)
4.[某音平台某浪新版key解密 play_licenses](https://www.52pojie.cn/thread-1752497-1-1.html)

某浪视频的key并不在m3u8内,现在请求到m3u8以后,还需要请求一个play_licenses的接口,请求到之后返回的是加密的key

![](https://attach.52pojie.cn/forum/202303/01/123820t4g8hgwwzygy8a4n.png)

跟踪堆栈调试时,会发现进行了一个大循环

![](https://attach.52pojie.cn/forum/202302/23/144124yb2ba8hw2hhg2hdw.png)

解密过程涉及jsvmp,为了方便使用,封装成dll进行处理

Python调用案例

```python
    dll = ctypes.WinDLL('snssdk.dll', winmode=0)
    dll.init_wasm()
    dll.decrypt_key.argtypes =
    dll.decrypt_key.restype = ctypes.c_char_p
    ckey = dll.decrypt_key(ctypes.c_char_p(b"muZOqFO3H6hTiHKVa9t3xGvYcZub")).decode()
    print(ckey)# 1d45c6d6841e4752
    ckey = dll.decrypt_key(ctypes.c_char_p(b"ouZ2xWyJTcYA5R2rAIoclAHESuYE+RnYAJcetgmpFOBYsELAwA==")).decode()
    print(ckey)# 991b8fe94e58466fb9f6592f69076bff
```

增加python的exe调用案例

```python
    snssdk = os.popen('snssdk muZOqFO3H6hTiHKVa9t3xGvYcZub')
    key = snssdk.read()
    print(key)# 1d45c6d6841e4752
    snssdk = os.popen('snssdk ouZ2xWyJTcYA5R2rAIoclAHESuYE+RnYAJcetgmpFOBYsELAwA==')
    key = snssdk.read()
    print(key)# 991b8fe94e58466fb9f6592f69076bff
```


下载地址:见附件

libaohao 发表于 2023-4-14 10:37

鱼哥,能否分析一下这个怎么下载?
https://japi.hqwx.com/vod/decrypt?Ciphertext=33f9087ead7378ed927aad9c7a9a3744dde3c92141ce0cf205c2c312f881c4834fd533063975bd45a584f20972030dd0e6ed01648c0e59de0592a130e64f4fcc9be233a7b24ee4bb58afb33d15d8384effef2535ffa008b89e0f446ffe8d0ff11073c2262ff588d308ea7ed4867a2a4381ea4ac3a9ff34de575c68bb591c5b47b555ab67770f696e69d695c7b1cb740ba9f4a5304d96918063c907e021c56a1cd4473fac18f439f2e041072f20753914c22fde476abf8c86f61306e34e10526dc127050b77ebcd19977d241187f824deb922349addae2601f5c3368e48cdf61a9d76ed8e87d5a9e0ec5a4240851f4d9e19900c1fa7522d2c76153354aeae93d5&MtsHlsUriToken=s3nRryjC.qr5z508MYxuz1EBFqqTp9KXtu8EbnPL4UH8h8T7MClJljKJ9h5Ua.NY

xiangye 发表于 2023-3-29 21:35

用python调用提示“FileNotFoundError: Could not find module 'snssdk.dll' (or one of its dependencies). Try using the full path with constructor syntax.”。。下载exe附件黑窗一闪而逝。。楼上这么多大侠,有哪个真的尝试成功了吗?

wanfeng12378766 发表于 2023-3-3 21:34

谢谢分享!

xixicoco 发表于 2023-3-3 21:42

渔歌出手就是一个不凡,大赞

xixicoco 发表于 2023-3-3 21:44

就想知道哥是如何把js打包为dll的??{:1_918:}

wuailuntanpeng 发表于 2023-3-3 21:53

厉害啦啊额

laustar 发表于 2023-3-3 22:11

        我很赞同!

sdytygygjl 发表于 2023-3-3 22:22


渔歌出手不凡,感谢分享!

modesty88 发表于 2023-3-3 22:28

渔哥解析下抖音放映厅呗,视频流与音频流都被加密了

suenley 发表于 2023-3-4 00:03

感谢渔大分享,YYDS

zjh889 发表于 2023-3-4 00:09

很好的技术贴,让俺们见识了!
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: 某浪视频key解密分析