|
1.随便播放一首歌曲,使其产生缓存文件,并在下载设置中找到缓存目录(如果缓存文件较多的话可以按照时间排序,找到最近播放的歌曲)
2.打开缓存目录,并找到文件后缀名为UC的歌曲缓存文件
3.将文件后缀名UC改为MP3
4.使用010Edit软件打开我们刚修改后的MP3文件(010Editor我们已经破解过了)
5.对文件进行异或操作,完成解密
点击OK,保存文件即可,之后就可以点开我们解密后的MP3文件,使用任意播放器均可(该方法对VIP歌曲同样适用,大家可以自行尝试操作)
原帖地址: https://www.52pojie.cn/thread-1556228-1-1.html
网易云在线缓存歌曲(.uc文件)解码转换成无损格式(.flac)
用python实现批量转换
感谢Nattevak提供思路:https://www.52pojie.cn/forum.php?mod=viewthread&tid=1556228&highlight=%CD%F8%D2%D7%D4%C6ucToFlac.py代码如下 - import os
- def getAllFiles():
- #返回当前目录下的所有文件名
- path = os.getcwd()
- return [f for f in os.listdir(path)]
- def isUcExtension(file):
- #判断是否是.uc文件
- if len(file) >= 4 and file[-3:] == '.uc':
- return True
- else:
- return False
- def ucToFlac(file):
- #将当前文件按字节与0xA3进行异或,并对文件格式进行修改
- fSource = open(file, 'rb')
- fOut = open(file[:-3] + '.flac','wb')
- content = bytearray(fSource.read())
- for index in range(len(content)):
- content[index] ^= 0xA3
- fOut.write(content)
- fSource.close()
- fOut.close()
- #函数调用:将当前目录下所有的.uc文件自动解码成.flac文件
- files = getAllFiles()
- for file in files:
- if isUcExtension(file):
- ucToFlac(file)
- print(file[:-3] + '.flac' + '转换成功')
复制代码
原帖地址:https://www.52pojie.cn/thread-1560121-1-1.html
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
打赏
-
查看全部打赏
|